gpio: tegra186: Replace of_node_to_fwnode() with more suitable API
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Thu, 22 Aug 2024 22:47:37 +0000 (01:47 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 2 Sep 2024 10:27:36 +0000 (12:27 +0200)
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>
drivers/gpio/gpio-tegra186.c

index 9130c691a2dd324f3e9ef3c57ff7c4f31fccee6f..1ecb733a5e88b4ade2b46f9089d672ec5ce07a60 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 #include <linux/seq_file.h>
 
 #include <dt-bindings/gpio/tegra186-gpio.h>
@@ -928,7 +929,7 @@ static int tegra186_gpio_probe(struct platform_device *pdev)
 
        irq = &gpio->gpio.irq;
        gpio_irq_chip_set_chip(irq, &tegra186_gpio_irq_chip);
-       irq->fwnode = of_node_to_fwnode(pdev->dev.of_node);
+       irq->fwnode = dev_fwnode(&pdev->dev);
        irq->child_to_parent_hwirq = tegra186_gpio_child_to_parent_hwirq;
        irq->populate_parent_alloc_arg = tegra186_gpio_populate_parent_fwspec;
        irq->child_offset_to_irq = tegra186_gpio_child_offset_to_irq;