diff options
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 30817d9b20cb..2676ef288bf5 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -53,6 +53,8 @@ | |||
53 | #include <linux/bootmem.h> | 53 | #include <linux/bootmem.h> |
54 | #include <linux/pci.h> | 54 | #include <linux/pci.h> |
55 | #include <linux/debugfs.h> | 55 | #include <linux/debugfs.h> |
56 | #include <linux/of.h> | ||
57 | #include <linux/of_irq.h> | ||
56 | 58 | ||
57 | #include <asm/uaccess.h> | 59 | #include <asm/uaccess.h> |
58 | #include <asm/system.h> | 60 | #include <asm/system.h> |
@@ -813,18 +815,6 @@ unsigned int irq_create_of_mapping(struct device_node *controller, | |||
813 | } | 815 | } |
814 | EXPORT_SYMBOL_GPL(irq_create_of_mapping); | 816 | EXPORT_SYMBOL_GPL(irq_create_of_mapping); |
815 | 817 | ||
816 | unsigned int irq_of_parse_and_map(struct device_node *dev, int index) | ||
817 | { | ||
818 | struct of_irq oirq; | ||
819 | |||
820 | if (of_irq_map_one(dev, index, &oirq)) | ||
821 | return NO_IRQ; | ||
822 | |||
823 | return irq_create_of_mapping(oirq.controller, oirq.specifier, | ||
824 | oirq.size); | ||
825 | } | ||
826 | EXPORT_SYMBOL_GPL(irq_of_parse_and_map); | ||
827 | |||
828 | void irq_dispose_mapping(unsigned int virq) | 818 | void irq_dispose_mapping(unsigned int virq) |
829 | { | 819 | { |
830 | struct irq_host *host; | 820 | struct irq_host *host; |