Skip to contentSkip to conversation

of/irq: export of_get_irq_byname()

PATCH Applied Dmitry Torokhov 4 participants 5 messages Aug 26, 2015 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of/irq: export of_get_irq_byname()

Similarly to of_get_irq(), let's export of_irq_get_byname(), so if a bus core can be compiled as a module (such as I2C) it can have access to the symbol.

---
 drivers/of/irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/of/irq.c +1 -0
index 7ef837e..1a7911d 100644
@@ -446,6 +446,7 @@ int of_irq_get_byname(struct device_node *dev, const char *name)
 
 	return of_irq_get(dev, index);
 }
+EXPORT_SYMBOL_GPL(of_irq_get_byname);
 
 /**
  * of_irq_count - Count the number of IRQs a node uses
Signature · 9 lines
2.5.0.457.gab17608


-- 
Dmitry
--
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

Hi Dmitry,

Quoted 7 lines · On Tue, 25 Aug 2015 17:04:02 -0700 Dmitry Torokhov…

Similarly to of_get_irq(), let's export of_irq_get_byname(), so if a bus core can be compiled as a module (such as I2C) it can have access to the symbol.

I applied that to linux-next today. Pelase get it applied to the i2c tree (with appropriate acks).

Signature · 6 lines
Cheers,
Stephen Rothwell                    [email protected]
--
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 7 lines · Stephen Rothwell

Hi Dmitry,

Quoted 4 lines · On Tue, 25 Aug 2015 17:04:02 -0700 Dmitry Torokhov <[email protected]>…

Similarly to of_get_irq(), let's export of_irq_get_byname(), so if a bus core can be compiled as a module (such as I2C) it can have access to the symbol.

Quoted 6 lines
Quoted 3 lines

I applied that to linux-next today. Pelase get it applied to the i2c tree (with appropriate acks).

Waiting for Rob's Ack, then I'll pick it up...

Acked-by on v1 1/1
#3 lore raw
In reply to Dmitry Torokhov
Quoted 6 lines · Dmitry Torokhov

Similarly to of_get_irq(), let's export of_irq_get_byname(), so if a bus core can be compiled as a module (such as I2C) it can have access to the symbol.

Quoted 20 lines
---
 drivers/of/irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/of/irq.c +1 -1
index 7ef837e..1a7911d 100644
@@ -446,6 +446,7 @@ int of_irq_get_byname(struct device_node *dev, const char *name)
 
        return of_irq_get(dev, index);
 }
+EXPORT_SYMBOL_GPL(of_irq_get_byname);
 
 /**
  * of_irq_count - Count the number of IRQs a node uses
--

2.5.0.457.gab17608

Quoted 2 lines

--
Dmitry

--
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