gpio: wm8994: remove platform_set_drvdata() + cleanup probe
authorAlexandru Ardelean <aardelean@deviqon.com>
Mon, 17 May 2021 11:35:40 +0000 (14:35 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 25 May 2021 14:21:14 +0000 (16:21 +0200)
commite076aeda467d83dba43f8e3a9d43997aaaf970fe
tree5447a813c286fb0b49778524ad14e577b7b62dc4
parent14ebdaec6d004a7d0727a0713c30b89166179e41
gpio: wm8994: 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-wm8994.c