diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-10-14 11:22:26 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-10-17 08:53:49 +0200 |
commit | 3bd13ae04ccc20e3a312596f89a269b8b6416dca (patch) | |
tree | 935d5d4055c02e31ee31819bdfe59273f94d99dd /drivers/gpio/gpio-rockchip.c | |
parent | 9a94580120bff8040e84e2d500f8f462f8704dc5 (diff) |
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>
Diffstat (limited to 'drivers/gpio/gpio-rockchip.c')
0 files changed, 0 insertions, 0 deletions