1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 01_acx100_kcompat-2.6.24 <sc@linux.it>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Create a setup.py file
9
diff -u acx100-20070101/pci.c acx100-20070101/pci.c
10
--- acx100-20070101/pci.c
11
+++ acx100-20070101/pci.c
12
@@ -1617,9 +1617,11 @@
13
acx_show_card_eeprom_id(adev);
14
#endif /* NONESSENTIAL_FEATURES */
16
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
17
#ifdef SET_MODULE_OWNER
18
SET_MODULE_OWNER(ndev);
21
SET_NETDEV_DEV(ndev, &pdev->dev);
23
log(L_IRQ|L_INIT, "using IRQ %d\n", pdev->irq);
24
--- acx100-20070101.orig/usb.c
25
+++ acx100-20070101/usb.c
27
ndev->watchdog_timeo = 4 * HZ;
29
ndev->change_mtu = &acx_e_change_mtu;
30
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
31
SET_MODULE_OWNER(ndev);
34
/* Setup private driver context */