diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-05-22 12:37:03 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-05-22 12:37:03 +0000 |
commit | eaf5cf5a00d50d816062991f7b4ab39bc3b67caa (patch) | |
tree | 213659c16fd571795dbb48c79e59ce59eab74cf1 /drivers/dahdi/wct1xxp.c | |
parent | 51d0dce98f109bef2bfa47feb3810c13f97fef13 (diff) |
and with another fell swoop... 2.4 kernel support is gone too
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4327 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct1xxp.c')
-rw-r--r-- | drivers/dahdi/wct1xxp.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/drivers/dahdi/wct1xxp.c b/drivers/dahdi/wct1xxp.c index 36be131..51c3924 100644 --- a/drivers/dahdi/wct1xxp.c +++ b/drivers/dahdi/wct1xxp.c @@ -32,12 +32,10 @@ #include <linux/errno.h> #include <linux/pci.h> #include <linux/spinlock.h> +#include <linux/moduleparam.h> #include <dahdi/kernel.h> #include <dahdi/user.h> -#ifdef LINUX26 -#include <linux/moduleparam.h> -#endif #define WC_MAX_CARDS 32 @@ -211,9 +209,6 @@ static int t1xxp_open(struct dahdi_chan *chan) if (wc->dead) return -ENODEV; wc->usecount++; -#ifndef LINUX26 - MOD_INC_USE_COUNT; -#endif return 0; } @@ -286,9 +281,6 @@ static int t1xxp_close(struct dahdi_chan *chan) { struct t1xxp *wc = chan->pvt; wc->usecount--; -#ifndef LINUX26 - MOD_DEC_USE_COUNT; -#endif /* If we're dead, release us now */ if (!wc->usecount && wc->dead) t1xxp_release(wc); @@ -1159,11 +1151,7 @@ DAHDI_IRQ_HANDLER(t1xxp_interrupt) ints = inb(wc->ioaddr + WC_INTSTAT); if (!ints) -#ifdef LINUX26 return IRQ_NONE; -#else - return; -#endif outb(ints, wc->ioaddr + WC_INTSTAT); @@ -1211,9 +1199,7 @@ DAHDI_IRQ_HANDLER(t1xxp_interrupt) if (ints & 0x20) printk("PCI Target abort\n"); -#ifdef LINUX26 return IRQ_RETVAL(1); -#endif } static int t1xxp_hardware_init(struct t1xxp *wc) @@ -1397,11 +1383,7 @@ MODULE_DEVICE_TABLE(pci,t1xxp_pci_tbl); static struct pci_driver t1xxp_driver = { name: "t1xxp", probe: t1xxp_init_one, -#ifdef LINUX26 remove: __devexit_p(t1xxp_remove_one), -#else - remove: t1xxp_remove_one, -#endif suspend: NULL, resume: NULL, id_table: t1xxp_pci_tbl, @@ -1421,11 +1403,8 @@ static void __exit t1xxp_cleanup(void) pci_unregister_driver(&t1xxp_driver); } -#ifdef LINUX26 module_param(debug, int, 0600); -#else -MODULE_PARM(debug, "i"); -#endif + MODULE_DESCRIPTION("Wildcard T100P/E100P DAHDI Driver"); MODULE_AUTHOR("Mark Spencer <markster@digium.com>"); #ifdef MODULE_LICENSE |