pcim_enable_device() no longer automatically manages IRQ vectors via devres. Drivers must now manually call pci_free_irq_vectors() for cleanup. Alternatively, pcim_alloc_irq_vectors() should be used.
To: Jeff Hugo <[email protected]> To: Oded Gabbay <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Bjorn Helgaas <[email protected]> Cc: Philipp Stanner <[email protected]> Cc: [email protected] Signed-off-by: Shawn Lin <[email protected]> --- drivers/accel/qaic/qaic_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/accel/qaic/qaic_drv.c b/drivers/accel/qaic/qaic_drv.c index 4c70bd9..2b2e0c5 100644 --- a/drivers/accel/qaic/qaic_drv.c +++ b/drivers/accel/qaic/qaic_drv.c @@ -525,9 +525,9 @@ static int init_msi(struct qaic_device *qdev, struct pci_dev *pdev) int i; /* Managed release since we use pcim_enable_device */ - ret = pci_alloc_irq_vectors(pdev, irq_count, irq_count, PCI_IRQ_MSI | PCI_IRQ_MSIX); + ret = pcim_alloc_irq_vectors(pdev, irq_count, irq_count, PCI_IRQ_MSI | PCI_IRQ_MSIX); if (ret == -ENOSPC) { - ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSI | PCI_IRQ_MSIX); + ret = pcim_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSI | PCI_IRQ_MSIX); if (ret < 0) return ret; -- 2.7.4
