drm/amdgpu: fix kernel panic when dpm disabled on Kv.
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 20 Jan 2017 06:30:51 +0000 (14:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 17:20:44 +0000 (12:20 -0500)
commit8485b5e1876b46d7c4f63a2cfcec2ee30362a207
tree4393ac8f7ab7cbbe2a971741ed026d5ff8497d9b
parent36a94a8ad74e83a135a4b0a2157dabe50b4562a6
drm/amdgpu: fix kernel panic when dpm disabled on Kv.

Return early if it's disabled.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/kv_dpm.c