drm/amdgpu: Fix missing error check in suspend
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Mon, 27 Jan 2020 18:47:41 +0000 (13:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2020 21:00:25 +0000 (16:00 -0500)
commit70bedd68e7b3a7f1d7f3198bb698fc23bc5aaa68
tree72171ccd808a887cb9782e4fee492d9558dbfbc6
parentdb70e2c13983926d8d657db3e740264b75ad20a4
drm/amdgpu: Fix missing error check in suspend

amdgpu_device_suspend might return an error code since it can be called
from both runtime and system suspend flows. Add the missing return code
in case of a failure.

Reviewed-by: Oak Zeng <oak.zeng@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c