005-2.6.30_fixes.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --- a/pci.c
  2. +++ b/pci.c
  3. @@ -2005,7 +2005,12 @@ static void acxpci_s_down(struct net_dev
  4. /* then wait until interrupts have finished executing on other CPUs */
  5. acx_lock(adev, flags);
  6. disable_acx_irq(adev);
  7. +#ifdef CONFIG_PCI
  8. synchronize_irq(adev->pdev->irq);
  9. +#endif
  10. +#ifdef CONFIG_VLYNQ
  11. + synchronize_irq(adev->vdev->irq);
  12. +#endif
  13. acx_unlock(adev, flags);
  14. /* we really don't want to have an asynchronous tasklet disturb us
  15. @@ -4164,7 +4169,11 @@ static __devinit int vlynq_probe(struct
  16. addr = (u32)ioremap(vdev->mem_start, 0x1000);
  17. if (!addr) {
  18. printk(KERN_ERR "%s: failed to remap io memory\n",
  19. +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
  20. vdev->dev.bus_id);
  21. +#else
  22. + dev_name(vdev));
  23. +#endif
  24. result = -ENXIO;
  25. goto fail;
  26. }
  27. @@ -4231,7 +4240,11 @@ static __devinit int vlynq_probe(struct
  28. printk("acx: found %s-based wireless network card at %s, irq:%d, "
  29. "phymem:0x%x, mem:0x%p\n",
  30. +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
  31. match->name, vdev->dev.bus_id, ndev->irq,
  32. +#else
  33. + match->name, dev_name(vdev), ndev->irq,
  34. +#endif
  35. vdev->mem_start, adev->iobase);
  36. log(L_ANY, "initial debug setting is 0x%04X\n", acx_debug);
  37. --- a/wlan_compat.h
  38. +++ b/wlan_compat.h
  39. @@ -221,8 +221,10 @@
  40. #ifndef IRQ_NONE
  41. #define IRQ_NONE
  42. #define IRQ_HANDLED
  43. +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
  44. typedef void irqreturn_t;
  45. #endif
  46. +#endif
  47. #ifndef ARPHRD_IEEE80211_PRISM
  48. #define ARPHRD_IEEE80211_PRISM 802