diff options
Diffstat (limited to 'include/linux/of_irq.h')
| -rw-r--r-- | include/linux/of_irq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index 6404253d810d..bfec136a6d1e 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h | |||
| @@ -45,6 +45,7 @@ extern void of_irq_init(const struct of_device_id *matches); | |||
| 45 | #ifdef CONFIG_OF_IRQ | 45 | #ifdef CONFIG_OF_IRQ |
| 46 | extern int of_irq_count(struct device_node *dev); | 46 | extern int of_irq_count(struct device_node *dev); |
| 47 | extern int of_irq_get(struct device_node *dev, int index); | 47 | extern int of_irq_get(struct device_node *dev, int index); |
| 48 | extern int of_irq_get_byname(struct device_node *dev, const char *name); | ||
| 48 | #else | 49 | #else |
| 49 | static inline int of_irq_count(struct device_node *dev) | 50 | static inline int of_irq_count(struct device_node *dev) |
| 50 | { | 51 | { |
| @@ -54,6 +55,10 @@ static inline int of_irq_get(struct device_node *dev, int index) | |||
| 54 | { | 55 | { |
| 55 | return 0; | 56 | return 0; |
| 56 | } | 57 | } |
| 58 | static inline int of_irq_get_byname(struct device_node *dev, const char *name) | ||
| 59 | { | ||
| 60 | return 0; | ||
| 61 | } | ||
| 57 | #endif | 62 | #endif |
| 58 | 63 | ||
| 59 | #if defined(CONFIG_OF) | 64 | #if defined(CONFIG_OF) |
