projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b75aa12
)
amd74xx: use ide_pci_is_in_compatibility_mode()
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Tue, 24 Mar 2009 22:22:48 +0000
(23:22 +0100)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Tue, 24 Mar 2009 22:22:48 +0000
(23:22 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/ide/amd74xx.c
b/drivers/ide/amd74xx.c
index 77267c85996578a47adb19d7104db6992e128e38..0caecad1998b045a369e47ba5a8cf74023987cf7 100644
(file)
--- 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);
}