drm/amdgpu: add pm sysfs files late
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Sep 2015 21:05:40 +0000 (17:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Oct 2015 20:09:47 +0000 (16:09 -0400)
commitfa022a9b65d2886486a022fd66b20c823cd76ad9
tree4d1db1f47b2c3284d614c4b27f04ac8e75115520
parent51a4726b04e880fdd9b4e0e58b13f70b0a68a7f5
drm/amdgpu: add pm sysfs files late

They were added relatively early in the driver init process
which meant that in some cases the driver was not finished
initializing before external tools tried to use them which
could result in a crash depending on the timing.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/ci_dpm.c
drivers/gpu/drm/amd/amdgpu/cz_dpm.c
drivers/gpu/drm/amd/amdgpu/kv_dpm.c