gpio: da9055: remove platform_set_drvdata() + cleanup probe
authorAlexandru Ardelean <aardelean@deviqon.com>
Fri, 14 May 2021 09:23:32 +0000 (12:23 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 21 May 2021 12:45:57 +0000 (14:45 +0200)
commit1189827a2cf72162e37c16d309c47d941cfd1936
treed09a267b1827de03c2014a8e246d015b50cf5d0a
parent2a9a2ccaab99d6f8bbe92f01839dfd1cd4a33ddf
gpio: da9055: 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>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-da9055.c