This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: atomisp: use pcim_enable_device() again
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Tue May 12 14:07:19 2020 +0200

Changing to pci_enable_device() didn't produce the expected
result. It could also eventually led to problems when driver
is removed, due to object lifetime issues. So, let's just
return to the previous behavior.

Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

---

diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c 
b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
index e83aae1978bd..36f9b43d31ae 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
@@ -1616,7 +1616,7 @@ static int atomisp_pci_probe(struct pci_dev *dev,
        if (!pdata)
                dev_warn(&dev->dev, "no platform data available\n");
 
-       err = pci_enable_device(dev);
+       err = pcim_enable_device(dev);
        if (err) {
                dev_err(&dev->dev, "Failed to enable CI ISP device (%d)\n",
                        err);
@@ -1907,7 +1907,6 @@ initialize_modules_fail:
        atomisp_msi_irq_uninit(isp, dev);
        pci_disable_msi(dev);
 enable_msi_fail:
-       pci_disable_device(dev);
 fw_validation_fail:
        release_firmware(isp->firmware);
 load_fw_fail:
@@ -1968,8 +1967,6 @@ static void atomisp_pci_remove(struct pci_dev *dev)
        release_firmware(isp->firmware);
 
        hmm_pool_unregister(HMM_POOL_TYPE_RESERVED);
-
-       pci_disable_device(dev);
 }
 
 static const struct pci_device_id atomisp_pci_tbl[] = {

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to