prepare madwifi for the kernel upgrade to 2.6.19
[openwrt/staging/mkresin.git] / package / madwifi / patches / 106-irq.patch
1 Index: trunk/ath/if_ath.c
2 ===================================================================
3 --- trunk/ath/if_ath.c (revision 1751)
4 +++ trunk/ath/if_ath.c (revision 1752)
5 @@ -1600,5 +1600,9 @@
6 */
7 irqreturn_t
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
9 +ath_intr(int irq, void *dev_id)
10 +#else
11 ath_intr(int irq, void *dev_id, struct pt_regs *regs)
12 +#endif
13 {
14 struct net_device *dev = dev_id;
15 Index: trunk/ath/if_athvar.h
16 ===================================================================
17 --- trunk/ath/if_athvar.h (revision 1726)
18 +++ trunk/ath/if_athvar.h (revision 1752)
19 @@ -727,5 +727,9 @@
20 void ath_suspend(struct net_device *);
21 void ath_shutdown(struct net_device *);
22 -irqreturn_t ath_intr(int, void *, struct pt_regs *);
23 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
24 +irqreturn_t ath_intr(int, void *);
25 +#else
26 +irqreturn_t ath_intr(int, void *, struct pt_regs *regs);
27 +#endif
28 int ath_ioctl_ethtool(struct ath_softc *, int, void __user *);
29 void bus_read_cachesize(struct ath_softc *, u_int8_t *);