diff options
-rwxr-xr-x | Makefile | 3 | ||||
-rwxr-xr-x | wct4xxp.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 @@ -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"); |