diff options
| author | Grant Likely <grant.likely@secretlab.ca> | 2012-02-24 10:24:17 -0500 |
|---|---|---|
| committer | Grant Likely <grant.likely@secretlab.ca> | 2012-02-26 18:48:06 -0500 |
| commit | d593f25ff263b1a7752b7380f8b7d57809206c40 (patch) | |
| tree | 5bb7355eba575cf3d28a928fdf44f435e4e6912a /include/linux | |
| parent | abd2363f6a5f1030b935e0bdc15cf917313b3b10 (diff) | |
irq_domain: Centralize definition of irq_dispose_mapping()
Several architectures define their own empty irq_dispose_mapping(). Since
the irq_domain code is centralized now, there is little need to do so. This
patch removes them and creates a new empty copy when !CONFIG_IRQ_DOMAIN is
selected.
The patch also means that IRQ_DOMAIN becomes selectable on all architectures.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: sparclinux@vger.kernel.org
Cc: linux@lists.openrisc.net
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/irqdomain.h | 5 | ||||
| -rw-r--r-- | include/linux/of_irq.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 52454881938a..ead4a4215797 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h | |||
| @@ -182,6 +182,9 @@ extern void irq_domain_generate_simple(const struct of_device_id *match, | |||
| 182 | static inline void irq_domain_generate_simple(const struct of_device_id *match, | 182 | static inline void irq_domain_generate_simple(const struct of_device_id *match, |
| 183 | u64 phys_base, unsigned int irq_start) { } | 183 | u64 phys_base, unsigned int irq_start) { } |
| 184 | #endif /* !CONFIG_OF_IRQ */ | 184 | #endif /* !CONFIG_OF_IRQ */ |
| 185 | #endif /* CONFIG_IRQ_DOMAIN */ | 185 | |
| 186 | #else /* CONFIG_IRQ_DOMAIN */ | ||
| 187 | static inline void irq_dispose_mapping(unsigned int virq) { } | ||
| 188 | #endif /* !CONFIG_IRQ_DOMAIN */ | ||
| 186 | 189 | ||
| 187 | #endif /* _LINUX_IRQDOMAIN_H */ | 190 | #endif /* _LINUX_IRQDOMAIN_H */ |
diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index d0307eed20c9..d229ad3edee0 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h | |||
| @@ -6,6 +6,7 @@ struct of_irq; | |||
| 6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
| 7 | #include <linux/errno.h> | 7 | #include <linux/errno.h> |
| 8 | #include <linux/irq.h> | 8 | #include <linux/irq.h> |
| 9 | #include <linux/irqdomain.h> | ||
| 9 | #include <linux/ioport.h> | 10 | #include <linux/ioport.h> |
| 10 | #include <linux/of.h> | 11 | #include <linux/of.h> |
| 11 | 12 | ||
| @@ -65,9 +66,6 @@ extern int of_irq_map_one(struct device_node *device, int index, | |||
| 65 | extern unsigned int irq_create_of_mapping(struct device_node *controller, | 66 | extern unsigned int irq_create_of_mapping(struct device_node *controller, |
| 66 | const u32 *intspec, | 67 | const u32 *intspec, |
| 67 | unsigned int intsize); | 68 | unsigned int intsize); |
| 68 | #ifdef CONFIG_IRQ_DOMAIN | ||
| 69 | extern void irq_dispose_mapping(unsigned int irq); | ||
| 70 | #endif | ||
| 71 | extern int of_irq_to_resource(struct device_node *dev, int index, | 69 | extern int of_irq_to_resource(struct device_node *dev, int index, |
| 72 | struct resource *r); | 70 | struct resource *r); |
| 73 | extern int of_irq_count(struct device_node *dev); | 71 | extern int of_irq_count(struct device_node *dev); |
