mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 18:21:49 +00:00
amd74xx: use ide_pci_is_in_compatibility_mode()
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>
This commit is contained in:
parent
b75aa122ed
commit
213e4b0a34
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user