summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-xwct4xxp.c2
1 files changed, 1 insertions, 1 deletions
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");