From 785fe6b121aa5ebab52e8505c9cad58079f87a7d Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 13 Jul 2005 17:50:13 +0000 Subject: little update git-svn-id: http://svn.digium.com/svn/zaptel/trunk@692 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- Makefile | 3 +++ wct4xxp.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 64cb77d..274ce38 100755 --- a/Makefile +++ b/Makefile @@ -354,6 +354,9 @@ install: all devices if ! grep "alias wcfxs" $(MODCONF); then \ echo "alias wcfxs wctdm" >> $(MODCONF); \ fi + if ! grep "alias wct2xxp" $(MODCONF); then \ + echo "alias wct2xxp wct4xxp" >> $(MODCONF); \ + fi if [ -d /etc/modutils ]; then \ /sbin/update-modules ; \ fi diff --git a/wct4xxp.c b/wct4xxp.c index bfe33c8..d66a897 100755 --- a/wct4xxp.c +++ b/wct4xxp.c @@ -2676,7 +2676,7 @@ static int __devinit t4_init_one(struct pci_dev *pdev, const struct pci_device_i #ifdef SUPPORT_GEN1 - if (request_irq(pdev->irq, (dt->flags & FLAG_2NDGEN) ? t4_interrupt_gen2 :t4_interrupt, SA_INTERRUPT | SA_SHIRQ, "wctxxp", wc)) + if (request_irq(pdev->irq, (dt->flags & FLAG_2NDGEN) ? t4_interrupt_gen2 :t4_interrupt, SA_INTERRUPT | SA_SHIRQ, (wc->numspans == 2) ? "wct2xxp" : "wct4xxp", wc)) #else if (!(wc->tspans[0]->spanflags & FLAG_2NDGEN)) { printk("This driver does not support 1st gen modules\n"); -- cgit v1.2.3