[PATCH 1/4] x86: add NO_IRQ macro
Alessandro Rubini
rubini at gnudd.com
Thu Mar 1 08:28:36 EST 2012
This is needed to compile AMBA drivers. Most architectures define
NO_IRQ as -1, and this does the same for the PC.
Signed-off-by: Alessandro Rubini <rubini at gnudd.com>
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi at st.com>
Cc: Russell King <linux at arm.linux.org.uk>
Cc: Alan Cox <alan at linux.intel.com>
---
arch/x86/include/asm/irq.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h
index ba870bb..c9072f5 100644
--- a/arch/x86/include/asm/irq.h
+++ b/arch/x86/include/asm/irq.h
@@ -10,6 +10,8 @@
#include <asm/apicdef.h>
#include <asm/irq_vectors.h>
+#define NO_IRQ (-1)
+
static inline int irq_canonicalize(int irq)
{
return ((irq == 2) ? 9 : irq);
--
1.7.7.2
More information about the linux-arm-kernel
mailing list