drm/amdgpu: fix unload driver issue for virtual display
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Thu, 19 Jan 2017 01:57:41 +0000 (09:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Jan 2017 21:47:18 +0000 (16:47 -0500)
commit3a1d19a29670aa7eb58576a31883d0aa9fb77549
treeee515274c34c33853fce58e1b586909f6b82e2ce
parentc5f21c9f878b8dcd54d0b9739c025ca73cb4c091
drm/amdgpu: fix unload driver issue for virtual display

Virtual display doesn't allocate amdgpu_encoder when initializing,
so will get invaild pointer if try to free amdgpu_encoder when
unloading driver.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_virtual.c