diff options
author | Gabor Juhos <j4g8y7@gmail.com> | 2025-05-14 22:18:38 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2025-05-15 01:18:14 +0300 |
commit | 4229c28323db141eda69cb99427be75d3edba071 (patch) | |
tree | 25b4e717d2861658e277537fe7019b45b63c2113 | |
parent | 6481c0a83367b0672951ccc876fbae7ee37b594b (diff) | |
download | linux-4229c28323db141eda69cb99427be75d3edba071.tar.xz |
pinctrl: armada-37xx: propagate error from armada_37xx_pmx_set_by_name()
The regmap_update_bits() 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-7-07e9ac1ab737@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index 18c6c5026b26..f35bf0cd98c9 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -358,9 +358,7 @@ static int armada_37xx_pmx_set_by_name(struct pinctrl_dev *pctldev, val = grp->val[func]; - regmap_update_bits(info->regmap, reg, mask, val); - - return 0; + return regmap_update_bits(info->regmap, reg, mask, val); } static int armada_37xx_pmx_set(struct pinctrl_dev *pctldev, |