diff options
| -rw-r--r-- | include/linux/of_irq.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index c0d6dfe80895..3f23b4472c31 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h | |||
| @@ -37,12 +37,20 @@ extern int of_irq_parse_one(struct device_node *device, int index, | |||
| 37 | extern unsigned int irq_create_of_mapping(struct of_phandle_args *irq_data); | 37 | extern unsigned int irq_create_of_mapping(struct of_phandle_args *irq_data); |
| 38 | extern int of_irq_to_resource(struct device_node *dev, int index, | 38 | extern int of_irq_to_resource(struct device_node *dev, int index, |
| 39 | struct resource *r); | 39 | struct resource *r); |
| 40 | extern int of_irq_count(struct device_node *dev); | ||
| 41 | extern int of_irq_to_resource_table(struct device_node *dev, | 40 | extern int of_irq_to_resource_table(struct device_node *dev, |
| 42 | struct resource *res, int nr_irqs); | 41 | struct resource *res, int nr_irqs); |
| 43 | 42 | ||
| 44 | extern void of_irq_init(const struct of_device_id *matches); | 43 | extern void of_irq_init(const struct of_device_id *matches); |
| 45 | 44 | ||
| 45 | #ifdef CONFIG_OF_IRQ | ||
| 46 | extern int of_irq_count(struct device_node *dev); | ||
| 47 | #else | ||
| 48 | static inline int of_irq_count(struct device_node *dev) | ||
| 49 | { | ||
| 50 | return 0; | ||
| 51 | } | ||
| 52 | #endif | ||
| 53 | |||
| 46 | #if defined(CONFIG_OF) | 54 | #if defined(CONFIG_OF) |
| 47 | /* | 55 | /* |
| 48 | * irq_of_parse_and_map() is used by all OF enabled platforms; but SPARC | 56 | * irq_of_parse_and_map() is used by all OF enabled platforms; but SPARC |
