2.6.30 kernel won't define IRQ_NONE as a macro.
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 6 Apr 2009 15:17:26 +0000 (15:17 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 6 Apr 2009 15:17:26 +0000 (15:17 +0000)
include/linux/interrupt.h

index 188465c55ac89694b661b4350aadd90239fc703c..3b57e47cd5ac9c011429cfad4a8eaef30d6e672a 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <linux/version.h>
 
-#ifndef IRQ_NONE
+#if !defined(IRQ_NONE) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
 typedef void irqreturn_t;
 #define IRQ_NONE
 #define IRQ_HANDLED