gpio: sprd: remove platform_set_drvdata() + cleanup probe
authorAlexandru Ardelean <aardelean@deviqon.com>
Sun, 16 May 2021 06:26:29 +0000 (09:26 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 25 May 2021 14:14:56 +0000 (16:14 +0200)
commit52f39cfee66d1878d91a3fdb97d47557af4da0f8
tree98bcf37a2ee2e89107986aa43a4ab63474ee8a85
parent81933d3e485094fee38519e779d8e8f315f513c5
gpio: sprd: 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-sprd.c