Skip to content

Commit 5482f1a

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: tegra186: 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 <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20240822224737.706870-1-andy.shevchenko@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 9f12737 commit 5482f1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpio/gpio-tegra186.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/module.h>
1414
#include <linux/of.h>
1515
#include <linux/platform_device.h>
16+
#include <linux/property.h>
1617
#include <linux/seq_file.h>
1718

1819
#include <dt-bindings/gpio/tegra186-gpio.h>
@@ -928,7 +929,7 @@ static int tegra186_gpio_probe(struct platform_device *pdev)
928929

929930
irq = &gpio->gpio.irq;
930931
gpio_irq_chip_set_chip(irq, &tegra186_gpio_irq_chip);
931-
irq->fwnode = of_node_to_fwnode(pdev->dev.of_node);
932+
irq->fwnode = dev_fwnode(&pdev->dev);
932933
irq->child_to_parent_hwirq = tegra186_gpio_child_to_parent_hwirq;
933934
irq->populate_parent_alloc_arg = tegra186_gpio_populate_parent_fwspec;
934935
irq->child_offset_to_irq = tegra186_gpio_child_offset_to_irq;

0 commit comments

Comments
 (0)