Commit 4eab532d authored by Suraj Upadhyay's avatar Suraj Upadhyay Committed by Greg Kroah-Hartman

staging: qlge/qlge_main.c: Replace depracated MSI API.

Replace the depracated MSI API pci_enable_msi()
with pci_alloc_irq_vectors().
Signed-off-by: default avatarSuraj Upadhyay <usuraj35@gmail.com>
Link: https://lore.kernel.org/r/20200716085811.GA29239@blackclownSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b4383c97
...@@ -3181,7 +3181,7 @@ static void ql_enable_msix(struct ql_adapter *qdev) ...@@ -3181,7 +3181,7 @@ static void ql_enable_msix(struct ql_adapter *qdev)
msi: msi:
qdev->intr_count = 1; qdev->intr_count = 1;
if (qlge_irq_type == MSI_IRQ) { if (qlge_irq_type == MSI_IRQ) {
if (!pci_enable_msi(qdev->pdev)) { if (pci_alloc_irq_vectors(qdev->pdev, 1, 1, PCI_IRQ_MSI) >= 0) {
set_bit(QL_MSI_ENABLED, &qdev->flags); set_bit(QL_MSI_ENABLED, &qdev->flags);
netif_info(qdev, ifup, qdev->ndev, netif_info(qdev, ifup, qdev->ndev,
"Running with MSI interrupts.\n"); "Running with MSI interrupts.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment