From: Tejun Heo Date: Sat, 24 Feb 2007 06:12:31 +0000 (+0900) Subject: sata_mv: fix pci_enable_msi() error handling X-Git-Tag: v2.6.21-rc2~25^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6a59dcf8678cbc4106a8a6e158d7408a87691358;p=linux-2.6-omap-h63xx.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 06867b92c9c..d724bc799b1 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);