gpio: gpio-tegra186: remove platform_set_drvdata() + cleanup probe
authorAlexandru Ardelean <aardelean@deviqon.com>
Sat, 15 May 2021 07:59:05 +0000 (10:59 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Sun, 23 May 2021 18:35:17 +0000 (20:35 +0200)
commit6e153938b7f005fde4dd025e3998d94cb27e4148
tree2cc8dad7cad0f4458cf041615d8d44f6ea6b367f
parent10a476164b08067f2094020f812af52c347542de
gpio: gpio-tegra186: 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-tegra186.c