diff options
-rwxr-xr-x | pciradio.c | 2 | ||||
-rwxr-xr-x | tor2.c | 2 | ||||
-rwxr-xr-x | wcfxo.c | 2 | ||||
-rwxr-xr-x | wct1xxp.c | 2 | ||||
-rwxr-xr-x | wct4xxp.c | 2 | ||||
-rwxr-xr-x | wctdm.c | 2 | ||||
-rwxr-xr-x | wcte11xp.c | 2 | ||||
-rwxr-xr-x | zaptel.h | 6 |
8 files changed, 13 insertions, 7 deletions
@@ -1796,7 +1796,7 @@ static int __init pciradio_init(void) { int res; - res = pci_module_init(&pciradio_driver); + res = zap_pci_module(&pciradio_driver); if (res) return -ENODEV; return 0; @@ -647,7 +647,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; } @@ -1006,7 +1006,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; @@ -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; @@ -2935,7 +2935,7 @@ static struct pci_driver t4_driver = { static int __init t4_init(void) { int res; - res = pci_module_init(&t4_driver); + res = zap_pci_module(&t4_driver); if (res) return -ENODEV; return 0; @@ -2357,7 +2357,7 @@ static int __init wctdm_init(void) return -ENODEV; } - res = pci_module_init(&wctdm_driver); + res = zap_pci_module(&wctdm_driver); if (res) return -ENODEV; return 0; @@ -1565,7 +1565,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 |