[PATCH 08/20] Revert "drm/i915: Grab a runtime pm reference before run live selftests"

José Roberto de Souza jose.souza at intel.com
Fri Oct 12 00:45:49 UTC 2018


This reverts commit b2c0c3b0c39502a5716d9b05a40e01dfe7f00841.
---
 drivers/gpu/drm/i915/i915_pci.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
index a079823e2d08..0a05cc7ace14 100644
--- a/drivers/gpu/drm/i915/i915_pci.c
+++ b/drivers/gpu/drm/i915/i915_pci.c
@@ -692,7 +692,6 @@ static void i915_pci_remove(struct pci_dev *pdev)
 
 static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 {
-	struct drm_i915_private *dev_priv;
 	struct intel_device_info *intel_info =
 		(struct intel_device_info *) ent->driver_data;
 	int err;
@@ -728,10 +727,7 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 		return -ENODEV;
 	}
 
-	dev_priv = to_i915(pci_get_drvdata(pdev));
-	intel_runtime_pm_get(dev_priv);
 	err = i915_live_selftests(pdev);
-	intel_runtime_pm_put(dev_priv);
 	if (err) {
 		i915_pci_remove(pdev);
 		return err > 0 ? -ENOTTY : err;
-- 
2.19.1



More information about the Intel-gfx-trybot mailing list