Gitweb: http://git.kernel.org/linus/213e4b0a3483b8cc99c4578923b9899e84e086e0 Commit: 213e4b0a3483b8cc99c4578923b9899e84e086e0 Parent: b75aa122edd91599e0cf2ae57a5de1e84d9895c2 Author: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> AuthorDate: Tue Mar 24 23:22:48 2009 +0100 Committer: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> CommitDate: Tue Mar 24 23:22:48 2009 +0100 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> --- 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 77267c8..0caecad 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); } -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
