diff options
author | Andres Salomon <dilinger@queued.net> | 2010-10-10 23:35:05 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-10-12 23:58:27 -0400 |
commit | 52f6537cb2f0b461a9ce3457c01a6cfa2ae0bb22 (patch) | |
tree | db720ce58637b3c70277f9b0fbe5082fcf6f9b94 /include/linux/of_irq.h | |
parent | e2f2a93b6384cfe0face0be595bfbda1475d864b (diff) |
of/irq: remove references to NO_IRQ in drivers/of/platform.c
Instead of referencing NO_IRQ in platform.c, define some helper functions
in irq.c to call instead from platform.c. Keep NO_IRQ usage local to
irq.c, and define NO_IRQ if not defined in headers.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/of_irq.h')
-rw-r--r-- | include/linux/of_irq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index 5929781c104d..090cbaa4bd36 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h | |||
@@ -64,6 +64,9 @@ extern unsigned int irq_create_of_mapping(struct device_node *controller, | |||
64 | unsigned int intsize); | 64 | unsigned int intsize); |
65 | extern int of_irq_to_resource(struct device_node *dev, int index, | 65 | extern int of_irq_to_resource(struct device_node *dev, int index, |
66 | struct resource *r); | 66 | struct resource *r); |
67 | extern int of_irq_count(struct device_node *dev); | ||
68 | extern int of_irq_to_resource_table(struct device_node *dev, | ||
69 | struct resource *res, int nr_irqs); | ||
67 | 70 | ||
68 | #endif /* CONFIG_OF_IRQ */ | 71 | #endif /* CONFIG_OF_IRQ */ |
69 | #endif /* CONFIG_OF */ | 72 | #endif /* CONFIG_OF */ |