diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-08-03 22:30:42 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-08-03 22:30:42 +0000 |
commit | 6eaacc99de587e663f4dae8051ad57098b9271b4 (patch) | |
tree | 9663c1dbce09ce707338ae6b98d199ed182a1910 /package | |
parent | 5c4b352bf542636809d0385755ef36c20d1776f4 (diff) | |
download | upstream-6eaacc99de587e663f4dae8051ad57098b9271b4.tar.gz upstream-6eaacc99de587e663f4dae8051ad57098b9271b4.tar.bz2 upstream-6eaacc99de587e663f4dae8051ad57098b9271b4.zip |
[package] acx fixes for 2.6.30
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17116 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/acx/patches/005-2.6.30_fixes.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/package/acx/patches/005-2.6.30_fixes.patch b/package/acx/patches/005-2.6.30_fixes.patch new file mode 100644 index 0000000000..f72bcd6231 --- /dev/null +++ b/package/acx/patches/005-2.6.30_fixes.patch @@ -0,0 +1,54 @@ +diff -urN acx-20080210/pci.c acx-20080210.new/pci.c +--- acx-20080210/pci.c 2009-08-04 00:28:37.000000000 +0200 ++++ acx-20080210.new/pci.c 2009-08-04 00:28:42.000000000 +0200 +@@ -2005,7 +2005,12 @@ + /* then wait until interrupts have finished executing on other CPUs */ + acx_lock(adev, flags); + disable_acx_irq(adev); ++#ifdef CONFIG_PCI + synchronize_irq(adev->pdev->irq); ++#endif ++#ifdef CONFIG_VLYNQ ++ synchronize_irq(adev->vdev->irq); ++#endif + acx_unlock(adev, flags); + + /* we really don't want to have an asynchronous tasklet disturb us +@@ -4164,7 +4169,11 @@ + addr = (u32)ioremap(vdev->mem_start, 0x1000); + if (!addr) { + printk(KERN_ERR "%s: failed to remap io memory\n", ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + vdev->dev.bus_id); ++#else ++ dev_name(vdev)); ++#endif + result = -ENXIO; + goto fail; + } +@@ -4231,7 +4240,11 @@ + + printk("acx: found %s-based wireless network card at %s, irq:%d, " + "phymem:0x%x, mem:0x%p\n", ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + match->name, vdev->dev.bus_id, ndev->irq, ++#else ++ match->name, dev_name(vdev), ndev->irq, ++#endif + vdev->mem_start, adev->iobase); + log(L_ANY, "initial debug setting is 0x%04X\n", acx_debug); + +diff -urN acx-20080210/wlan_compat.h acx-20080210.new/wlan_compat.h +--- acx-20080210/wlan_compat.h 2008-02-10 21:06:42.000000000 +0100 ++++ acx-20080210.new/wlan_compat.h 2009-08-04 00:24:26.000000000 +0200 +@@ -221,8 +221,10 @@ + #ifndef IRQ_NONE + #define IRQ_NONE + #define IRQ_HANDLED ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) + typedef void irqreturn_t; + #endif ++#endif + + #ifndef ARPHRD_IEEE80211_PRISM + #define ARPHRD_IEEE80211_PRISM 802 |