Skip to content

Commit 2d578dd

Browse files
andy-shevlinusw
authored andcommitted
pinctrl: bcm2835: Remove of_node_put() in bcm2835_of_gpio_ranges_fallback()
Remove wrong of_node_put() in bcm2835_of_gpio_ranges_fallback(), there is no counterpart of_node_get() for it. Fixes: d2b6774 ("pinctrl: bcm2835: implement hook for missing gpio-ranges") Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Stefan Wahren <[email protected]> Tested-by: Stefan Wahren <[email protected]> Tested-by: Florian Fainelli <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Acked-by: Bartosz Golaszewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent c40aa80 commit 2d578dd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pinctrl/bcm/pinctrl-bcm2835.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,6 @@ static int bcm2835_of_gpio_ranges_fallback(struct gpio_chip *gc,
363363
{
364364
struct pinctrl_dev *pctldev = of_pinctrl_get(np);
365365

366-
of_node_put(np);
367-
368366
if (!pctldev)
369367
return 0;
370368

0 commit comments

Comments
 (0)