]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
[ARM] 3772/1: Fix compilation error in mach-ixp4xx/nslu2*
authorMartin Michlmayr <tbm@cyrius.com>
Wed, 6 Sep 2006 18:03:24 +0000 (19:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 6 Sep 2006 18:03:24 +0000 (19:03 +0100)
Patch from Martin Michlmayr

Include linux/irq.h in the nslu2 code in order to avoid the following
compiler error:

  CC      arch/arm/mach-ixp4xx/nslu2-power.o
arch/arm/mach-ixp4xx/nslu2-power.c: In function 'nslu2_power_init':
arch/arm/mach-ixp4xx/nslu2-power.c:53: warning: implicit declaration of function 'set_irq_type'
arch/arm/mach-ixp4xx/nslu2-power.c:53: error: 'IRQ_TYPE_LEVEL_LOW' undeclared (first use in this function)
arch/arm/mach-ixp4xx/nslu2-power.c:53: error: (Each undeclared identifier is reported only once
arch/arm/mach-ixp4xx/nslu2-power.c:53: error: for each function it appears in.)
arch/arm/mach-ixp4xx/nslu2-power.c:54: error: 'IRQ_TYPE_LEVEL_HIGH' undeclared (first use in this function)
make[5]: *** [arch/arm/mach-ixp4xx/nslu2-power.o] Error 1

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ixp4xx/nslu2-pci.c
arch/arm/mach-ixp4xx/nslu2-power.c

index 0de639d6e60a5a4f418b05d3d1ee48940fff3d78..04661fef97f5a09a6116fde0ca6d58361b6454ab 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/irq.h>
 
 #include <asm/mach/pci.h>
 #include <asm/mach-types.h>
index e2a2230b69f0d71e214f02adfe2289a74b3116ee..a29b3b2b61b63cfb085ff54d2af53c1251fe316a 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <linux/module.h>
 #include <linux/reboot.h>
+#include <linux/irq.h>
 #include <linux/interrupt.h>
 #include <linux/reboot.h>