aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/106-irq.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-14 04:54:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-14 04:54:59 +0000
commitaefaa3896be98f0a7f93d4a8d86d205364547bf6 (patch)
treedeae51893e1bfb1c828ce0a0e1c800e7847facc4 /package/madwifi/patches/106-irq.patch
parentb623d111e428e09d67db163b91502b17e62a5675 (diff)
downloadupstream-aefaa3896be98f0a7f93d4a8d86d205364547bf6.tar.gz
upstream-aefaa3896be98f0a7f93d4a8d86d205364547bf6.tar.bz2
upstream-aefaa3896be98f0a7f93d4a8d86d205364547bf6.zip
prepare madwifi for the kernel upgrade to 2.6.19
SVN-Revision: 5780
Diffstat (limited to 'package/madwifi/patches/106-irq.patch')
-rw-r--r--package/madwifi/patches/106-irq.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/madwifi/patches/106-irq.patch b/package/madwifi/patches/106-irq.patch
new file mode 100644
index 0000000000..6dc16f3e62
--- /dev/null
+++ b/package/madwifi/patches/106-irq.patch
@@ -0,0 +1,29 @@
+Index: trunk/ath/if_ath.c
+===================================================================
+--- trunk/ath/if_ath.c (revision 1751)
++++ trunk/ath/if_ath.c (revision 1752)
+@@ -1600,5 +1600,9 @@
+ */
+ irqreturn_t
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
++ath_intr(int irq, void *dev_id)
++#else
+ ath_intr(int irq, void *dev_id, struct pt_regs *regs)
++#endif
+ {
+ struct net_device *dev = dev_id;
+Index: trunk/ath/if_athvar.h
+===================================================================
+--- trunk/ath/if_athvar.h (revision 1726)
++++ trunk/ath/if_athvar.h (revision 1752)
+@@ -727,5 +727,9 @@
+ void ath_suspend(struct net_device *);
+ void ath_shutdown(struct net_device *);
+-irqreturn_t ath_intr(int, void *, struct pt_regs *);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
++irqreturn_t ath_intr(int, void *);
++#else
++irqreturn_t ath_intr(int, void *, struct pt_regs *regs);
++#endif
+ int ath_ioctl_ethtool(struct ath_softc *, int, void __user *);
+ void bus_read_cachesize(struct ath_softc *, u_int8_t *);