Skip to contentSkip to conversation

gpio: tegra186: Replace of_node_to_fwnode() with more suitable API

PATCH Applied Andy Shevchenko 2 participants 2 messages Aug 22, 2024 – Sep 2, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpio/gpio-tegra186.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpio/gpio-tegra186.c +2 -1
index 9130c691a2dd..1ecb733a5e88 100644
@@ -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;
Signature · 1 line
2.46.0
#1 lore raw

From: Bartosz Golaszewski <[email protected]>

Quoted 4 lines · Andy Shevchenko

of_node_to_fwnode() is a IRQ domain specific implementation of of_fwnode_handle(). Replace the former with more suitable API.

Applied, thanks!

[1/1] gpio: tegra186: Replace of_node_to_fwnode() with more suitable API

      commit: 6955e021fedba9d50b58b1fd674829524bacb8f9

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>