gpio: visconti: remove platform_set_drvdata() + cleanup probe
authorAlexandru Ardelean <aardelean@deviqon.com>
Fri, 14 May 2021 08:55:00 +0000 (11:55 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 21 May 2021 13:28:22 +0000 (15:28 +0200)
commitec5aa31bbed6ca153b47f60af0d21032296b04ad
tree44c454134d3c743a3020f66ac614cf5556c6c848
parent9e23bf6b00fd060d9a6fdf8a43f427d09992a21d
gpio: visconti: remove platform_set_drvdata() + cleanup probe

The platform_set_drvdata() call is only useful if we need to retrieve back
the private information.
Since the driver doesn't do that, it's not useful to have it.

If this is removed, we can also just do a direct return on
devm_gpiochip_add_data(). We don't need to print that this call failed as
there are other ways to log/see this during probe.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-visconti.c