From: Tejun Heo Date: Sat, 24 Feb 2007 06:12:31 +0000 (+0900) Subject: sata_mv: fix pci_enable_msi() error handling X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a59dcf8678cbc4106a8a6e158d7408a87691358;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 06867b92c9c7..d724bc799b1a 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -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);