diff options
| -rw-r--r-- | CORE/SERVICES/HIF/PCIe/if_pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/SERVICES/HIF/PCIe/if_pci.c b/CORE/SERVICES/HIF/PCIe/if_pci.c index 4e253e4dc527..0f6346322eba 100644 --- a/CORE/SERVICES/HIF/PCIe/if_pci.c +++ b/CORE/SERVICES/HIF/PCIe/if_pci.c @@ -1468,7 +1468,11 @@ hif_pci_configure(struct hif_pci_softc *sc, hif_handle_t *hif_hdl) int i; int rv; +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)) || defined(WITH_BACKPORTS) + rv = pci_enable_msi_range(sc->pdev, MSI_NUM_REQUEST, MSI_NUM_REQUEST); +#else rv = pci_enable_msi_block(sc->pdev, MSI_NUM_REQUEST); +#endif if (rv == 0) { /* successfully allocated all MSI interrupts */ /* |
