diff options
author | 2021-02-04 09:11:14 -0500 | |
---|---|---|
committer | 2021-02-09 15:30:03 -0500 | |
commit | a8d3d80a8ca3df47a846937809fc1e1d8e8fbce2 (patch) | |
tree | 9c1983a616be768205a8e0bd883c6cb9ae34529d /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | drm/amdgpu/nv: add PCI reset support (diff) | |
download | linux-dev-a8d3d80a8ca3df47a846937809fc1e1d8e8fbce2.tar.xz linux-dev-a8d3d80a8ca3df47a846937809fc1e1d8e8fbce2.zip |
drm/amdgpu: drop extra drm_kms_helper_poll_enable/disable calls
These are already called in amdgpu_device_suspend/resume which
are already called in the same functions.
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index e6a72a7fc311..0ee6514ee55c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1445,10 +1445,8 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, amdgpu_device_resume(dev, true); dev->switch_power_state = DRM_SWITCH_POWER_ON; - drm_kms_helper_poll_enable(dev); } else { pr_info("switched off\n"); - drm_kms_helper_poll_disable(dev); dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; amdgpu_device_suspend(dev, true); amdgpu_device_cache_pci_state(pdev); |