diff options
Diffstat (limited to 'include/linux/of_irq.h')
-rw-r--r-- | include/linux/of_irq.h | 5 |
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); | |||
46 | extern int of_irq_get_byname(struct device_node *dev, const char *name); | 46 | extern int of_irq_get_byname(struct device_node *dev, const char *name); |
47 | extern int of_irq_to_resource_table(struct device_node *dev, | 47 | extern int of_irq_to_resource_table(struct device_node *dev, |
48 | struct resource *res, int nr_irqs); | 48 | struct resource *res, int nr_irqs); |
49 | extern void of_msi_configure(struct device *dev, struct device_node *np); | ||
49 | #else | 50 | #else |
50 | static inline int of_irq_count(struct device_node *dev) | 51 | static 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 | } |
68 | static 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 | */ |
75 | extern unsigned int irq_of_parse_and_map(struct device_node *node, int index); | 79 | extern unsigned int irq_of_parse_and_map(struct device_node *node, int index); |
76 | extern struct device_node *of_irq_find_parent(struct device_node *child); | 80 | extern struct device_node *of_irq_find_parent(struct device_node *child); |
77 | extern void of_msi_configure(struct device *dev, struct device_node *np); | ||
78 | 81 | ||
79 | #else /* !CONFIG_OF */ | 82 | #else /* !CONFIG_OF */ |
80 | static inline unsigned int irq_of_parse_and_map(struct device_node *dev, | 83 | static inline unsigned int irq_of_parse_and_map(struct device_node *dev, |