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: Min Ma <[email protected]> To: Lizhi Hou <[email protected]> Cc: Oded Gabbay <[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/amdxdna/aie2_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accel/amdxdna/aie2_pci.c b/drivers/accel/amdxdna/aie2_pci.c index f70ccf0..3935a22 100644 --- a/drivers/accel/amdxdna/aie2_pci.c +++ b/drivers/accel/amdxdna/aie2_pci.c @@ -551,7 +551,7 @@ static int aie2_init(struct amdxdna_dev *xdna) goto release_fw; } - ret = pci_alloc_irq_vectors(pdev, nvec, nvec, PCI_IRQ_MSIX); + ret = pcim_alloc_irq_vectors(pdev, nvec, nvec, PCI_IRQ_MSIX); if (ret < 0) { XDNA_ERR(xdna, "failed to alloc irq vectors, ret %d", ret); goto release_fw; -- 2.7.4
