gpio: adp5520: cleanup probe error path + remove platform_set_drvdata()
authorAlexandru Ardelean <aardelean@deviqon.com>
Fri, 14 May 2021 08:56:27 +0000 (11:56 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 21 May 2021 13:29:53 +0000 (15:29 +0200)
commit6681db5ef540bc47a654c8d85d27042626edc6f8
tree235d746c1e23e55e16d28c1fb6222462930a0b22
parentec5aa31bbed6ca153b47f60af0d21032296b04ad
gpio: adp5520: cleanup probe error path + remove platform_set_drvdata()

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.

This also means that the 'err' label can be removed and all goto statements
replaced with direct returns (with error codes).

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