diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2019-10-04 22:33:39 +0300 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2019-10-15 22:51:39 +0300 | 
| commit | 803cc26d5cb6a3c93eab9124c1e218dc93066a6c (patch) | |
| tree | f46b84dcd056ebd4d357fd0a411eed4870e9f335 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | 1489d17940012ceb39b0b7bed71bda18e9eae804 (diff) | |
| download | linux-803cc26d5cb6a3c93eab9124c1e218dc93066a6c.tar.xz | |
drm/amdgpu: move pci_save_state into suspend path
for amdgpu_device_suspend.  This follows the logic
in the resume path.
Reviewed-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, 1 insertions, 1 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 75a0db394e21..9532338ae164 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -3171,8 +3171,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)  	 */  	amdgpu_bo_evict_vram(adev); -	pci_save_state(dev->pdev);  	if (suspend) { +		pci_save_state(dev->pdev);  		/* Shut down the device */  		pci_disable_device(dev->pdev);  		pci_set_power_state(dev->pdev, PCI_D3hot); | 
