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: Xinliang Liu <[email protected]>
To: Tian Tao <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Simona Vetter <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Thomas Zimmermann <[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/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c 
b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
index 2893045..7705c78 100644
--- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
+++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
@@ -289,8 +289,8 @@ static int hibmc_msi_init(struct drm_device *dev)
        int irq;
        int ret;
 
-       ret = pci_alloc_irq_vectors(pdev, HIBMC_MIN_VECTORS,
-                                   HIBMC_MAX_VECTORS, PCI_IRQ_MSI);
+       ret = pcim_alloc_irq_vectors(pdev, HIBMC_MIN_VECTORS,
+                                    HIBMC_MAX_VECTORS, PCI_IRQ_MSI);
        if (ret < 0) {
                drm_err(dev, "enabling MSI failed: %d\n", ret);
                return ret;
-- 
2.7.4

Reply via email to