mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00:00
sata_mv: fix pci_enable_msi() error handling
intx should be turned on when pci_enable_msi() fails not when it succeeds. Fix it. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
f1da66e759
commit
6a59dcf867
@ -2347,7 +2347,7 @@ static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
return rc;
|
||||
|
||||
/* Enable interrupts */
|
||||
if (msi && !pci_enable_msi(pdev))
|
||||
if (msi && pci_enable_msi(pdev))
|
||||
pci_intx(pdev, 1);
|
||||
|
||||
mv_dump_pci_cfg(pdev, 0x68);
|
||||
|
Loading…
Reference in New Issue
Block a user