diff options
| author | Alex Deucher <[email protected]> | 2016-12-06 15:38:29 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-12-07 16:17:21 +0000 |
| commit | faefba95c9e8ca3a523831c2ec2150f5ea054dae (patch) | |
| tree | 9a22a1a9071737b04cf3b30e32826c4f8203a5d7 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | Merge tag 'drm-intel-fixes-2016-12-01' of git://anongit.freedesktop.org/git/d... (diff) | |
| download | kernel-faefba95c9e8ca3a523831c2ec2150f5ea054dae.tar.gz kernel-faefba95c9e8ca3a523831c2ec2150f5ea054dae.zip | |
drm/amdgpu: just suspend the hw on pci shutdown
We can't just reuse pci_remove as there may be userspace still
doing things.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98638
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97980
Reviewed-by: Christian König <[email protected]>
Reported-and-tested-by: Mike Lothian <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
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 3161d77bf299..e41d4baebf86 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1493,7 +1493,7 @@ static int amdgpu_fini(struct amdgpu_device *adev) return 0; } -static int amdgpu_suspend(struct amdgpu_device *adev) +int amdgpu_suspend(struct amdgpu_device *adev) { int i, r; |
