aboutsummaryrefslogtreecommitdiffstats
path: root/package/acx/patches
diff options
context:
space:
mode:
authorMatteo Croce <matteo@openwrt.org>2008-02-08 20:15:23 +0000
committerMatteo Croce <matteo@openwrt.org>2008-02-08 20:15:23 +0000
commitb734512859db60d7344c6546e2a3eff2b1dbbdd0 (patch)
treea66021b59ad2f8c0d75f39a506786c94c8205977 /package/acx/patches
parent3bcb90f7366f02d7e4c6a1dcf3c9ad9a67eb45b8 (diff)
downloadupstream-b734512859db60d7344c6546e2a3eff2b1dbbdd0.tar.gz
upstream-b734512859db60d7344c6546e2a3eff2b1dbbdd0.tar.bz2
upstream-b734512859db60d7344c6546e2a3eff2b1dbbdd0.zip
backport acx100 2.6.24 fixes from SVN
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10425 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/acx/patches')
-rw-r--r--package/acx/patches/003-2.6.24-compat.diff42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/acx/patches/003-2.6.24-compat.diff b/package/acx/patches/003-2.6.24-compat.diff
new file mode 100644
index 0000000000..c216dd145d
--- /dev/null
+++ b/package/acx/patches/003-2.6.24-compat.diff
@@ -0,0 +1,42 @@
+diff -u acx-20080112/pci.c acx-20080112.new/pci.c
+--- acx-20080112/pci.c 2008-02-08 19:20:41.000000000 +0000
++++ acx-20080112.new/pci.c 2008-02-08 19:05:46.000000000 +0000
+@@ -1632,7 +1632,7 @@
+ acx_show_card_eeprom_id(adev);
+ #endif /* NONESSENTIAL_FEATURES */
+
+-#ifdef SET_MODULE_OWNER
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) && defined(SET_MODULE_OWNER)
+ SET_MODULE_OWNER(ndev);
+ #endif
+ SET_NETDEV_DEV(ndev, &pdev->dev);
+@@ -2128,7 +2128,7 @@
+ /* TODO: pci_set_power_state(pdev, PCI_D0); ? */
+
+ /* request shared IRQ handler */
+- if (request_irq(ndev->irq, acxpci_i_interrupt, SA_SHIRQ, ndev->name, ndev)) {
++ if (request_irq(ndev->irq, acxpci_i_interrupt, IRQF_SHARED, ndev->name, ndev)) {
+ printk("%s: request_irq FAILED\n", ndev->name);
+ result = -EAGAIN;
+ goto done;
+@@ -4339,7 +4339,7 @@
+ acx_show_card_eeprom_id(adev);
+ #endif /* NONESSENTIAL_FEATURES */
+
+-#ifdef SET_MODULE_OWNER
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) && defined(SET_MODULE_OWNER)
+ SET_MODULE_OWNER(ndev);
+ #endif
+ SET_NETDEV_DEV(ndev, adev->bus_dev);
+diff -u acx-20080112/usb.c acx-20080112.new/usb.c
+--- acx-20080112/usb.c 2008-01-12 12:27:38.000000000 +0000
++++ acx-20080112.new/usb.c 2008-02-08 19:01:34.000000000 +0000
+@@ -859,7 +859,9 @@
+ ndev->watchdog_timeo = 4 * HZ;
+ #endif
+ ndev->change_mtu = &acx_e_change_mtu;
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
+ SET_MODULE_OWNER(ndev);
++#endif
+
+ /* Setup private driver context */