mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
ide: fix ide_intr() for non-PCI devices and CONFIG_BLK_DEV_IDEPCI=y
'hwif->pci_dev && !hwif->pci_dev->vendor' condition is never true, check for 'hwif->chipset != ide_pci' instead. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
2be564b034
commit
425afb6103
1 changed files with 1 additions and 1 deletions
|
@ -1487,7 +1487,7 @@ irqreturn_t ide_intr (int irq, void *dev_id)
|
|||
* remove all the ifdef PCI crap
|
||||
*/
|
||||
#ifdef CONFIG_BLK_DEV_IDEPCI
|
||||
if (hwif->pci_dev && !hwif->pci_dev->vendor)
|
||||
if (hwif->chipset != ide_pci)
|
||||
#endif /* CONFIG_BLK_DEV_IDEPCI */
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue