diff options
author | Tejun Heo <htejun@gmail.com> | 2007-02-24 15:12:31 +0900 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-24 20:52:12 -0500 |
commit | 6a59dcf8678cbc4106a8a6e158d7408a87691358 (patch) | |
tree | d479d9ff9af8a66d636af4dacc90236111241b87 /drivers/ata/sata_mv.c | |
parent | f1da66e7592c978d9122cb05d8eada1bd900de1a (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.c | 2 |
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) 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); |