Skip to content

Commit

Permalink
amd74xx: use ide_pci_is_in_compatibility_mode()
Browse files Browse the repository at this point in the history
Fix ->init_hwif to check if IDE PCI controller is in compatibility
mode instead of checking for hwif->irq == 0.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent b75aa12 commit 213e4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/amd74xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif)
{
struct pci_dev *dev = to_pci_dev(hwif->dev);

if (hwif->irq == 0) /* 0 is bogus but will do for now */
if (ide_pci_is_in_compatibility_mode(dev))
hwif->irq = pci_get_legacy_ide_irq(dev, hwif->channel);
}

Expand Down

0 comments on commit 213e4b0

Please sign in to comment.