[ar71xx] fix dir-825-b1 default network config after r21905
[openwrt.git] / package / madwifi / patches / 433-backport_remove_irq_none.patch
1 Fix Linux 2.6.30 compatibility
2
3 Linux 2.6.30 doesn't define IRQ_NONE as a macro. Assume irqreturn_t,
4 IRQ_NONE and IRQ_HANDLED to be present on Linux 2.6.29 and newer.
5 http://madwifi-project.org/changeset/3986
6 --- a/ath/if_athvar.h
7 +++ b/ath/if_athvar.h
8 @@ -83,11 +83,13 @@ typedef void *TQUEUE_ARG;
9 /*
10 * Guess how the interrupt handler should work.
11 */
12 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
13 #if !defined(IRQ_NONE)
14 typedef void irqreturn_t;
15 #define IRQ_NONE
16 #define IRQ_HANDLED
17 #endif /* !defined(IRQ_NONE) */
18 +#endif /* Linux < 2.6.29 */
19
20 #ifndef SET_MODULE_OWNER
21 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
This page took 0.042512 seconds and 5 git commands to generate.