OSDN Git Service

gpio: ath79: remove platform_set_drvdata() + cleanup probe
authorAlexandru Ardelean <aardelean@deviqon.com>
Mon, 17 May 2021 11:37:07 +0000 (14:37 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 25 May 2021 14:14:05 +0000 (16:14 +0200)
commitcd440753dc9e8803c945f67e4d45f6ea834c00ed
tree95556f45480afe9be9e21f7583fa56b9b9ba0ef7
parenteffe3781b6cc8144d6b55b5159ec5bafd73639f7
gpio: ath79: 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-ath79.c