Skip to content

Commit dad83b9

Browse files
andy-shevgeertu
authored andcommitted
pinctrl: renesas: rzg2l: Replace of_node_to_fwnode() with more suitable API
of_node_to_fwnode() is a IRQ domain specific implementation of of_fwnode_handle(). Replace the former with more suitable API. Signed-off-by: Andy Shevchenko <[email protected]> Tested-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 5e633f5 commit dad83b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pinctrl/renesas/pinctrl-rzg2l.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/of.h>
1717
#include <linux/of_irq.h>
1818
#include <linux/platform_device.h>
19+
#include <linux/property.h>
1920
#include <linux/seq_file.h>
2021
#include <linux/spinlock.h>
2122

@@ -2623,7 +2624,7 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *pctrl)
26232624

26242625
girq = &chip->irq;
26252626
gpio_irq_chip_set_chip(girq, &rzg2l_gpio_irqchip);
2626-
girq->fwnode = of_node_to_fwnode(np);
2627+
girq->fwnode = dev_fwnode(pctrl->dev);
26272628
girq->parent_domain = parent_domain;
26282629
girq->child_to_parent_hwirq = rzg2l_gpio_child_to_parent_hwirq;
26292630
girq->populate_parent_alloc_arg = rzg2l_gpio_populate_parent_fwspec;

0 commit comments

Comments
 (0)