summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-07-13 17:50:13 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-07-13 17:50:13 +0000
commit785fe6b121aa5ebab52e8505c9cad58079f87a7d (patch)
treef2a5804aa21ddd93ce4d80fadd29d2b3fbb3ca7b
parent98bdb441f5d9aa862ccc94dacb419a03444d5431 (diff)
little update
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@692 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xMakefile3
-rwxr-xr-xwct4xxp.c2
2 files changed, 4 insertions, 1 deletions
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");