Skip to contentSkip to conversation

of: irq: Export of_irq_count()

PATCH In review Thierry Reding 2 participants 3 messages Apr 3, 2017 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: irq: Export of_irq_count()

From: Thierry Reding <[email protected]>

of_irq_count() is handy for obtaining the number of interrupts assigned to a device tree node. It is reasonable to want to access this function from loadable modules, so export the symbol to allow that.

---
Hi Rob, Frank,

This patch is required for the new Tegra186 GPIO driver I'm trying to get merged for v4.12. It'd be great if I could get an Acked-by from you so that the patch can be merged through the GPIO tree along with a few other prerequisites for the new driver.

Potential for conflicts is rather minimal given the line count.

Thanks,
Thierry

 drivers/of/irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/of/irq.c +1 -0
index 7c56b72d1dc6..3deaada2ff29 100644
@@ -458,6 +458,7 @@ int of_irq_count(struct device_node *dev)
 
 	return nr;
 }
+EXPORT_SYMBOL_GPL(of_irq_count);
 
 /**
  * of_irq_to_resource_table - Fill in resource table with node's IRQ info
Signature · 6 lines
2.12.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 6 lines · Thierry Reding

From: Thierry Reding <[email protected]>

of_irq_count() is handy for obtaining the number of interrupts assigned to a device tree node. It is reasonable to want to access this function from loadable modules, so export the symbol to allow that.

Quoted 8 lines

---
Hi Rob, Frank,

This patch is required for the new Tegra186 GPIO driver I'm trying to get merged for v4.12. It'd be great if I could get an Acked-by from you so that the patch can be merged through the GPIO tree along with a few other prerequisites for the new driver.

Use platform_irq_count instead.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 12 lines · Rob Herring
Quoted 10 lines · Thierry Reding

From: Thierry Reding <[email protected]>

of_irq_count() is handy for obtaining the number of interrupts assigned to a device tree node. It is reasonable to want to access this function from loadable modules, so export the symbol to allow that.

---
Hi Rob, Frank,

Quoted 6 lines
Quoted 4 lines

This patch is required for the new Tegra186 GPIO driver I'm trying to get merged for v4.12. It'd be great if I could get an Acked-by from you so that the patch can be merged through the GPIO tree along with a few other prerequisites for the new driver.

Use platform_irq_count instead.

Nice, that's much better.

Thanks,
Thierry