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: Maciej Falkowski <[email protected]>
To: Karol Wachowski <[email protected]>
To: 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/ivpu/ivpu_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c
index 8ffda57..5673a07 100644
--- a/drivers/accel/ivpu/ivpu_drv.c
+++ b/drivers/accel/ivpu/ivpu_drv.c
@@ -487,7 +487,7 @@ static int ivpu_irq_init(struct ivpu_device *vdev)
        struct pci_dev *pdev = to_pci_dev(vdev->drm.dev);
        int ret;
 
-       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) {
                ivpu_err(vdev, "Failed to allocate a MSI IRQ: %d\n", ret);
                return ret;
-- 
2.7.4

Reply via email to