drm/amdgpu: fix unload driver fail
authorEmily Deng <Emily.Deng@amd.com>
Mon, 27 May 2019 03:12:51 +0000 (11:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 May 2019 19:43:34 +0000 (14:43 -0500)
commitc8bdf2b63e5b6b31b3b4826b8e87c0c2f6b650ff
treee84a0a235f29f2d2bb42c779cbc7701f23a92383
parent74abc2210e105f0fffe59c35d2329201f1b4310e
drm/amdgpu: fix unload driver fail

dc_destroy should be called amdgpu_cgs_destroy_device,
as it will use cgs context to read or write registers.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c