diff --git a/drivers/ide/amd74xx.c b/drivers/ide/amd74xx.c index 77267c85996578a47adb19d7104db6992e128e38..0caecad1998b045a369e47ba5a8cf74023987cf7 100644 --- a/drivers/ide/amd74xx.c +++ b/drivers/ide/amd74xx.c @@ -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); }