diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 23:22:48 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 23:22:48 +0100 |
commit | 213e4b0a3483b8cc99c4578923b9899e84e086e0 (patch) | |
tree | c927f74bd70d504e48521f27e45d2159eb0fc0eb /drivers/ide/amd74xx.c | |
parent | mn10300: add pci_get_legacy_ide_irq() to <asm/pci.h> (diff) | |
download | linux-213e4b0a3483b8cc99c4578923b9899e84e086e0.tar.xz linux-213e4b0a3483b8cc99c4578923b9899e84e086e0.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/ide/amd74xx.c | 2 |
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) { 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); } |