]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix ns87415.c for PA-RISC Super I/O chip
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Sat, 7 Feb 2004 05:05:55 +0000 (21:05 -0800)
committerLen Brown <len.brown@intel.com>
Sat, 7 Feb 2004 05:05:55 +0000 (21:05 -0800)
From: Matthew Wilcox <willy@debian.org>

drivers/ide/pci/ns87415.c

index a23ee42f000570e16c732153ee198fb00c611fca..4dd37cd44e7668603cdb3498c07e9d7e68a3a738 100644 (file)
@@ -198,7 +198,7 @@ static void __init init_hwif_ns87415 (ide_hwif_t *hwif)
        }
 
        if (!using_inta)
-               hwif->irq = hwif->channel ? 15 : 14;    /* legacy mode */
+               hwif->irq = ide_default_irq(hwif->io_ports[IDE_DATA_OFFSET]);
        else if (!hwif->irq && hwif->mate && hwif->mate->irq)
                hwif->irq = hwif->mate->irq;    /* share IRQ with mate */