ahci: restore pci_intx() handling
[deliverable/linux.git] / drivers / ata / ahci.c
index d4cd9c203314df43b960cbbef0e05211d535b8da..acd1162712b18920ff4a0c2a00d6b7e44c4fc3bd 100644 (file)
@@ -2930,8 +2930,8 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        if (ahci_sb600_32bit_only(pdev))
                hpriv->flags |= AHCI_HFLAG_32BIT_ONLY;
 
-       if (!(hpriv->flags & AHCI_HFLAG_NO_MSI))
-               pci_enable_msi(pdev);
+       if ((hpriv->flags & AHCI_HFLAG_NO_MSI) || pci_enable_msi(pdev))
+               pci_intx(pdev, 1);
 
        /* save initial config */
        ahci_save_initial_config(pdev, hpriv);
This page took 0.0346 seconds and 5 git commands to generate.