aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_mv.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-02-24 01:12:31 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-24 20:52:12 -0500
commit6a59dcf8678cbc4106a8a6e158d7408a87691358 (patch)
treed479d9ff9af8a66d636af4dacc90236111241b87 /drivers/ata/sata_mv.c
parentf1da66e7592c978d9122cb05d8eada1bd900de1a (diff)
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>
Diffstat (limited to 'drivers/ata/sata_mv.c')
-rw-r--r--drivers/ata/sata_mv.c2
1 files changed, 1 insertions, 1 deletions
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)
2347 return rc; 2347 return rc;
2348 2348
2349 /* Enable interrupts */ 2349 /* Enable interrupts */
2350 if (msi && !pci_enable_msi(pdev)) 2350 if (msi && pci_enable_msi(pdev))
2351 pci_intx(pdev, 1); 2351 pci_intx(pdev, 1);
2352 2352
2353 mv_dump_pci_cfg(pdev, 0x68); 2353 mv_dump_pci_cfg(pdev, 0x68);