]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: drop pm_runtime_set_active
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 7 May 2020 13:57:09 +0000 (09:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 May 2020 18:33:21 +0000 (14:33 -0400)
The pci core handles this for us in pci_pm_init.

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

index ea7e72ecaefa2dee0ce6c24d1a27309bb5c0f358..df9260a8d1b5f912def4c4d2904c10292c5a2797 100644 (file)
@@ -192,7 +192,6 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)
                dev_pm_set_driver_flags(dev->dev, DPM_FLAG_NEVER_SKIP);
                pm_runtime_use_autosuspend(dev->dev);
                pm_runtime_set_autosuspend_delay(dev->dev, 5000);
-               pm_runtime_set_active(dev->dev);
                pm_runtime_allow(dev->dev);
                pm_runtime_mark_last_busy(dev->dev);
                pm_runtime_put_autosuspend(dev->dev);