diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-11-15 14:28:44 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-11-15 14:28:44 +0000 |
commit | a7297d28c5ae5d83802e707fc2149618d12ee72f (patch) | |
tree | 52489abd50ca7472f65486a0b3386794e59e2dcf | |
parent | c77a44d1b7e5e581ceae0821d981790c58cff267 (diff) |
port API call update from HEAD
git-svn-id: http://svn.digium.com/svn/zaptel/branches/v1-0@817 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-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 |