aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of_irq.h')
-rw-r--r--include/linux/of_irq.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h
index 4bcbd586a672..0088038d5ccd 100644
--- a/include/linux/of_irq.h
+++ b/include/linux/of_irq.h
@@ -46,6 +46,7 @@ extern int of_irq_get(struct device_node *dev, int index);
46extern int of_irq_get_byname(struct device_node *dev, const char *name); 46extern int of_irq_get_byname(struct device_node *dev, const char *name);
47extern int of_irq_to_resource_table(struct device_node *dev, 47extern int of_irq_to_resource_table(struct device_node *dev,
48 struct resource *res, int nr_irqs); 48 struct resource *res, int nr_irqs);
49extern void of_msi_configure(struct device *dev, struct device_node *np);
49#else 50#else
50static inline int of_irq_count(struct device_node *dev) 51static inline int of_irq_count(struct device_node *dev)
51{ 52{
@@ -64,6 +65,9 @@ static inline int of_irq_to_resource_table(struct device_node *dev,
64{ 65{
65 return 0; 66 return 0;
66} 67}
68static inline void of_msi_configure(struct device *dev, struct device_node *np)
69{
70}
67#endif 71#endif
68 72
69#if defined(CONFIG_OF) 73#if defined(CONFIG_OF)
@@ -74,7 +78,6 @@ static inline int of_irq_to_resource_table(struct device_node *dev,
74 */ 78 */
75extern unsigned int irq_of_parse_and_map(struct device_node *node, int index); 79extern unsigned int irq_of_parse_and_map(struct device_node *node, int index);
76extern struct device_node *of_irq_find_parent(struct device_node *child); 80extern struct device_node *of_irq_find_parent(struct device_node *child);
77extern void of_msi_configure(struct device *dev, struct device_node *np);
78 81
79#else /* !CONFIG_OF */ 82#else /* !CONFIG_OF */
80static inline unsigned int irq_of_parse_and_map(struct device_node *dev, 83static inline unsigned int irq_of_parse_and_map(struct device_node *dev,