]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpio: tegra: Replace of_node_to_fwnode() with more suitable API
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Thu, 22 Aug 2024 22:38:45 +0000 (01:38 +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/20240822223845.706346-1-andy.shevchenko@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-tegra.c

index ea5f9cc14bc48651b27a890faf2b8f4465b5fba6..6d3a39a03f58e22363f69a3c9074021c1107fc32 100644 (file)
 #include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/module.h>
-#include <linux/seq_file.h>
 #include <linux/irqdomain.h>
 #include <linux/irqchip/chained_irq.h>
 #include <linux/pinctrl/consumer.h>
 #include <linux/pm.h>
+#include <linux/property.h>
+#include <linux/seq_file.h>
 
 #define GPIO_BANK(x)           ((x) >> 5)
 #define GPIO_PORT(x)           (((x) >> 3) & 0x3)
@@ -755,7 +756,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)
        }
 
        irq = &tgi->gc.irq;
-       irq->fwnode = of_node_to_fwnode(pdev->dev.of_node);
+       irq->fwnode = dev_fwnode(&pdev->dev);
        irq->child_to_parent_hwirq = tegra_gpio_child_to_parent_hwirq;
        irq->populate_parent_alloc_arg = tegra_gpio_populate_parent_fwspec;
        irq->handler = handle_simple_irq;