]> err.no Git - linux-2.6/commitdiff
[POWERPC] Fix compile error in prom.h
authorAndrew Morton <akpm@osdl.org>
Sun, 18 Feb 2007 01:17:16 +0000 (18:17 -0700)
committerPaul Mackerras <paulus@samba.org>
Thu, 8 Mar 2007 04:31:40 +0000 (15:31 +1100)
In file included from include/asm/pci.h:20,
                 from include/linux/pci.h:751,
                 from arch/powerpc/sysdev/dart_iommu.c:36:
include/asm/prom.h: In function `of_irq_to_resource':
include/asm/prom.h:341: warning: implicit declaration of function `irq_of_parse_and_map'
include/asm/prom.h:345: error: `NO_IRQ' undeclared (first use in this function)
include/asm/prom.h:345: error: (Each undeclared identifier is reported only once
include/asm/prom.h:345: error: for each function it appears in.)

Seems that prom.h has always wanted irq.h.

Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/prom.h

index 020ed015a94b4fef829b20f20d1db6d58372e279..1aa15e2e056e39961d51f8b65d5bad0d46ce930a 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/types.h>
 #include <linux/proc_fs.h>
 #include <linux/platform_device.h>
+#include <asm/irq.h>
 #include <asm/atomic.h>
 
 /* Definitions used by the flattened device tree */