drm/amdgpu: check dpm state before pm system fs initialized.
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 29 Mar 2016 06:34:51 +0000 (14:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2016 14:08:30 +0000 (10:08 -0400)
commit5349ece70600bd574d9a825801c00f900acda3d4
tree7339717cd2ee669715421e5d0438c1e69e1257ef
parent4cd05a74cc604ef1cc6ac37a25629e185bcd2cc5
drm/amdgpu: check dpm state before pm system fs initialized.

Make sure powerplay initialized properly before enabling
debugfs pm files.

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/amdgpu_powerplay.c