summaryrefslogtreecommitdiff
path: root/network/madwifi-driver/patches/madwifi-0.9.4_kernel_2.6.30.diff
blob: 15638ef5d1fd34111b10131479f6210037a4904a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -Naur madwifi-0.9.4.orig/ath/if_athvar.h madwifi-0.9.4/ath/if_athvar.h
--- madwifi-0.9.4.orig/ath/if_athvar.h	2008-02-12 06:05:28.000000000 +0000
+++ madwifi-0.9.4/ath/if_athvar.h	2009-09-25 15:46:40.000000000 +0000
@@ -94,11 +94,13 @@
 /*
  * Guess how the interrupt handler should work.
  */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
 #if !defined(IRQ_NONE)
 typedef void irqreturn_t;
 #define	IRQ_NONE
 #define	IRQ_HANDLED
 #endif /* !defined(IRQ_NONE) */
+#endif /* Linux < 2.6.29 */
 
 #ifndef SET_MODULE_OWNER
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)