gpio: menz127: simplify error path and remove remove()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 14 Oct 2024 09:22:26 +0000 (11:22 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 17 Oct 2024 06:53:49 +0000 (08:53 +0200)
commit3bd13ae04ccc20e3a312596f89a269b8b6416dca
tree935d5d4055c02e31ee31819bdfe59273f94d99dd
parent9a94580120bff8040e84e2d500f8f462f8704dc5
gpio: menz127: simplify error path and remove remove()

Use devres to drop all goto labels from probe() and remove the driver
remove() callback. While at it: drop the unnecessary dev_info() message
as not only should the driver be quiet when successful, the message is
also wrong: the device was probed at this point, the driver had been
registered earlier.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241014092227.78886-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-menz127.c