drm/amdgpu:cancel timer of virtual DCE(v2)
authorMonk Liu <Monk.Liu@amd.com>
Thu, 16 Nov 2017 03:11:39 +0000 (11:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:52 +0000 (12:47 -0500)
commit1719efc2327dc7485f30f6674c6ba4a793ac3a25
tree8b0eb542e3ed0c7294d16ea9f88165808629037b
parent129d65c18ecfb249aceb540c31fdaf79bd5a11ff
drm/amdgpu:cancel timer of virtual DCE(v2)

virtual DCE Timer structure is already released
after its sw_fini(), so we need to cancel the
its Timer in hw_fini() otherwise the Timer canceling
is missed.

v2:
use for loop and num_crtc to replace original code

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_virtual.c