diff options
-rwxr-xr-x | ChangeLog | 1 | ||||
-rwxr-xr-x | tor2.c | 2 | ||||
-rwxr-xr-x | wcfxo.c | 2 | ||||
-rwxr-xr-x | wcfxs.c | 2 | ||||
-rwxr-xr-x | wct1xxp.c | 2 | ||||
-rwxr-xr-x | wcte11xp.c | 2 | ||||
-rwxr-xr-x | zaptel.h | 6 |
7 files changed, 12 insertions, 5 deletions
@@ -1,4 +1,5 @@ -- support DACS w/RBS on single-span cards + -- use newer API call on 2.6.10+ kernels zaptel 1.0.9.2 -- fix build issues for Linux 2.6.13 -- fixed tor2 to work on 64-bit architectures @@ -628,7 +628,7 @@ static struct pci_driver tor2_driver = { static int __init tor2_init(void) { int res; - res = pci_module_init(&tor2_driver); + res = zap_pci_module(&tor2_driver); printk("Registered Tormenta2 PCI\n"); return res; } @@ -1007,7 +1007,7 @@ static int __init wcfxo_init(void) printk("%d: %s\n", x, fxo_modes[x].name); return -ENODEV; } - res = pci_module_init(&wcfxo_driver); + res = zap_pci_module(&wcfxo_driver); if (res) return -ENODEV; return 0; @@ -2206,7 +2206,7 @@ static int __init wcfxs_init(void) return -ENODEV; } - res = pci_module_init(&wcfxs_driver); + res = zap_pci_module(&wcfxs_driver); if (res) return -ENODEV; return 0; @@ -1390,7 +1390,7 @@ static struct pci_driver t1xxp_driver = { static int __init t1xxp_init(void) { int res; - res = pci_module_init(&t1xxp_driver); + res = zap_pci_module(&t1xxp_driver); if (res) return -ENODEV; return 0; @@ -1554,7 +1554,7 @@ static struct pci_driver t1xxp_driver = { static int __init t1xxp_init(void) { int res; - res = pci_module_init(&t1xxp_driver); + res = zap_pci_module(&t1xxp_driver); if (res) return -ENODEV; return 0; @@ -48,6 +48,12 @@ #define LINUX26 #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) +#define zap_pci_module pci_register_driver +#else +#define zap_pci_module pci_module_init +#endif + #include "ecdis.h" #include "fasthdlc.h" #endif |