]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:32 +0000 (11:05 +0100)
commit0245c91f4fdc2fc84e25c73f3bc8fd1acc7d5c47
tree0ecbd6e30b17a229bea3941743bd34ca7ae373e6
parent017035aaff2baf4c0667f86c6ad3d379a587d1ab
pinctrl: armada-37xx: propagate error from armada_37xx_gpio_get_direction()

[ Upstream commit 6481c0a83367b0672951ccc876fbae7ee37b594b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c