gpio: spear-spics: remove platform_set_drvdata() + cleanup probe
authorAlexandru Ardelean <aardelean@deviqon.com>
Sun, 16 May 2021 07:43:11 +0000 (10:43 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 25 May 2021 14:14:34 +0000 (16:14 +0200)
commit81933d3e485094fee38519e779d8e8f315f513c5
treea5376269065839abbba721be9cbb134c7bf754dd
parentcd440753dc9e8803c945f67e4d45f6ea834c00ed
gpio: spear-spics: 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.

This change isn't removing the 'DT probe failed' message, as some may find
it useful as a reason for the failed probe. But that can be part of another
change if needed.

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