mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
pinctrl: renesas: Updates for v6.15 (take two)
- Add missing of_node_put() calls. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ9qaHoIs/1I4cXmEiKwlD9ZEnxcAUCZ8sTCwAKCRCKwlD9ZEnx cJNoAQCHoa7kwfKCbFIpTRQLX4l3PlzM9gAwoHI6AsfokcgzqwEA7BZFRmhmcXTQ HWKP8aeSrfiiKvhrjU5j3hr6n9geWgo= =dy1I -----END PGP SIGNATURE----- Merge tag 'renesas-pinctrl-for-v6.15-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel pinctrl: renesas: Updates for v6.15 (take two) - Add missing of_node_put() calls. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
commit
7dadc4b152
|
|
@ -259,6 +259,8 @@ static int rza2_gpio_register(struct rza2_pinctrl_priv *priv)
|
|||
return ret;
|
||||
}
|
||||
|
||||
of_node_put(of_args.np);
|
||||
|
||||
if ((of_args.args[0] != 0) ||
|
||||
(of_args.args[1] != 0) ||
|
||||
(of_args.args[2] != priv->npins)) {
|
||||
|
|
|
|||
|
|
@ -2763,6 +2763,8 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *pctrl)
|
|||
if (ret)
|
||||
return dev_err_probe(pctrl->dev, ret, "Unable to parse gpio-ranges\n");
|
||||
|
||||
of_node_put(of_args.np);
|
||||
|
||||
if (of_args.args[0] != 0 || of_args.args[1] != 0 ||
|
||||
of_args.args[2] != pctrl->data->n_port_pins)
|
||||
return dev_err_probe(pctrl->dev, -EINVAL,
|
||||
|
|
|
|||
|
|
@ -940,6 +940,8 @@ static int rzv2m_gpio_register(struct rzv2m_pinctrl *pctrl)
|
|||
return ret;
|
||||
}
|
||||
|
||||
of_node_put(of_args.np);
|
||||
|
||||
if (of_args.args[0] != 0 || of_args.args[1] != 0 ||
|
||||
of_args.args[2] != pctrl->data->n_port_pins) {
|
||||
dev_err(pctrl->dev, "gpio-ranges does not match selected SOC\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user