ixp4xx: backport IXP4XX_GPIO_IRQ macro to 2.6.32
authorGabor Juhos <juhosg@openwrt.org>
Sat, 14 Aug 2010 21:07:38 +0000 (21:07 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 14 Aug 2010 21:07:38 +0000 (21:07 +0000)
SVN-Revision: 22647

target/linux/ixp4xx/patches-2.6.32/030-backport-introduce-IXP4XX_GPIO_IRQ.patch [new file with mode: 0644]

diff --git a/target/linux/ixp4xx/patches-2.6.32/030-backport-introduce-IXP4XX_GPIO_IRQ.patch b/target/linux/ixp4xx/patches-2.6.32/030-backport-introduce-IXP4XX_GPIO_IRQ.patch
new file mode 100644 (file)
index 0000000..eafe051
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/arch/arm/mach-ixp4xx/include/mach/irqs.h
++++ b/arch/arm/mach-ixp4xx/include/mach/irqs.h
+@@ -59,6 +59,9 @@
+ #define IRQ_IXP4XX_MCU_ECC    61
+ #define IRQ_IXP4XX_EXP_PE     62
++#define _IXP4XX_GPIO_IRQ(n)   (IRQ_IXP4XX_GPIO ## n)
++#define IXP4XX_GPIO_IRQ(n)    _IXP4XX_GPIO_IRQ(n)
++
+ /*
+  * Only first 32 sources are valid if running on IXP42x systems
+  */