1 diff -urN acx-20080210/pci.c acx-20080210.new/pci.c
2 --- acx-20080210/pci.c 2009-08-04 00:28:37.000000000 +0200
3 +++ acx-20080210.new/pci.c 2009-08-04 00:28:42.000000000 +0200
5 /* then wait until interrupts have finished executing on other CPUs */
9 synchronize_irq(adev->pdev->irq);
12 + synchronize_irq(adev->vdev->irq);
14 acx_unlock(adev, flags);
16 /* we really don't want to have an asynchronous tasklet disturb us
17 @@ -4164,7 +4169,11 @@
18 addr = (u32)ioremap(vdev->mem_start, 0x1000);
20 printk(KERN_ERR "%s: failed to remap io memory\n",
21 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
29 @@ -4231,7 +4240,11 @@
31 printk("acx: found %s-based wireless network card at %s, irq:%d, "
32 "phymem:0x%x, mem:0x%p\n",
33 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
34 match->name, vdev->dev.bus_id, ndev->irq,
36 + match->name, dev_name(vdev), ndev->irq,
38 vdev->mem_start, adev->iobase);
39 log(L_ANY, "initial debug setting is 0x%04X\n", acx_debug);
41 diff -urN acx-20080210/wlan_compat.h acx-20080210.new/wlan_compat.h
42 --- acx-20080210/wlan_compat.h 2008-02-10 21:06:42.000000000 +0100
43 +++ acx-20080210.new/wlan_compat.h 2009-08-04 00:24:26.000000000 +0200
48 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
49 typedef void irqreturn_t;
53 #ifndef ARPHRD_IEEE80211_PRISM
54 #define ARPHRD_IEEE80211_PRISM 802