Skip to content

Commit

Permalink
ns87415: use pci_get_legacy_ide_irq()
Browse files Browse the repository at this point in the history
Fix ->init_hwif to use pci_get_legacy_ide_irq() instead of
__ide_default_irq().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent 213e4b0 commit 973d9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ns87415.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static void __devinit init_hwif_ns87415 (ide_hwif_t *hwif)
}

if (!using_inta)
hwif->irq = __ide_default_irq(hwif->io_ports.data_addr);
hwif->irq = pci_get_legacy_ide_irq(dev, hwif->channel);
else if (!hwif->irq && hwif->mate && hwif->mate->irq)
hwif->irq = hwif->mate->irq; /* share IRQ with mate */

Expand Down

0 comments on commit 973d9e7

Please sign in to comment.