aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/amd74xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/amd74xx.c b/drivers/ide/amd74xx.c
index 77267c859965..0caecad1998b 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)
187{ 187{
188 struct pci_dev *dev = to_pci_dev(hwif->dev); 188 struct pci_dev *dev = to_pci_dev(hwif->dev);
189 189
190 if (hwif->irq == 0) /* 0 is bogus but will do for now */ 190 if (ide_pci_is_in_compatibility_mode(dev))
191 hwif->irq = pci_get_legacy_ide_irq(dev, hwif->channel); 191 hwif->irq = pci_get_legacy_ide_irq(dev, hwif->channel);
192} 192}
193 193