summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/renesas/pinctrl-rzv2m.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2022-11-20 23:34:45 +0100
committerLinus Walleij <linus.walleij@linaro.org>2022-11-20 23:34:45 +0100
commitd53f77d77f08321b2c7e405fdb310c59e906098e (patch)
treeb9102683d0f7f24ec620e7b63bf146ae3f2fcced /drivers/pinctrl/renesas/pinctrl-rzv2m.c
parent91dd31146f06f37cdf59c5478d0058ac9f246a72 (diff)
parent80d34260f36c6c55f03c3c33be4a11ec06202e98 (diff)
downloadlwn-d53f77d77f08321b2c7e405fdb310c59e906098e.tar.gz
lwn-d53f77d77f08321b2c7e405fdb310c59e906098e.zip
Merge tag 'renesas-pinctrl-for-v6.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel
pinctrl: renesas: Updates for v6.2 - Use dynamic GPIO base on combined pincctrl/gpio controllers on SH/R-Mobile SoCs, - Miscellaneous improvements.
Diffstat (limited to 'drivers/pinctrl/renesas/pinctrl-rzv2m.c')
-rw-r--r--drivers/pinctrl/renesas/pinctrl-rzv2m.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/renesas/pinctrl-rzv2m.c b/drivers/pinctrl/renesas/pinctrl-rzv2m.c
index 061f16c77304..3b65a71abd9a 100644
--- a/drivers/pinctrl/renesas/pinctrl-rzv2m.c
+++ b/drivers/pinctrl/renesas/pinctrl-rzv2m.c
@@ -399,8 +399,7 @@ static int rzv2m_dt_node_to_map(struct pinctrl_dev *pctldev,
ret = -EINVAL;
done:
- if (ret < 0)
- rzv2m_dt_free_map(pctldev, *map, *num_maps);
+ rzv2m_dt_free_map(pctldev, *map, *num_maps);
return ret;
}