pinctrl: armada-37xx: propagate error from armada_37xx_gpio_get_direction()
authorGabor Juhos <j4g8y7@gmail.com>
Wed, 14 May 2025 19:18:37 +0000 (21:18 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 14 May 2025 22:18:14 +0000 (00:18 +0200)
commit6481c0a83367b0672951ccc876fbae7ee37b594b
tree8939e176bb319dc3a166d58de5b18f2b0b615e15
parentbfa0ff804ffa8b1246ade8be08de98c9eb19d16f
pinctrl: armada-37xx: propagate error from armada_37xx_gpio_get_direction()

The regmap_read() function can fail, so propagate its error up to
the stack instead of silently ignoring that.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Link: https://lore.kernel.org/20250514-pinctrl-a37xx-fixes-v2-6-07e9ac1ab737@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c