Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Suraj Upadhyay <usuraj35@gmail.com>
Link: https://lore.kernel.org/r/20200716085811.GA29239@blackclown
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Suraj Upadhyay and committed by
Greg Kroah-Hartman
4eab532d b4383c97

+1 -1
+1 -1
drivers/staging/qlge/qlge_main.c
··· 3181 3181 msi: 3182 3182 qdev->intr_count = 1; 3183 3183 if (qlge_irq_type == MSI_IRQ) { 3184 - if (!pci_enable_msi(qdev->pdev)) { 3184 + if (pci_alloc_irq_vectors(qdev->pdev, 1, 1, PCI_IRQ_MSI) >= 0) { 3185 3185 set_bit(QL_MSI_ENABLED, &qdev->flags); 3186 3186 netif_info(qdev, ifup, qdev->ndev, 3187 3187 "Running with MSI interrupts.\n");