drm/amdgpu/powerplay: enable sysfs and debugfs interfaces late
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Dec 2015 22:28:28 +0000 (17:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:51 +0000 (16:42 -0500)
commit898b1dead9a99aeeb103febacf838c7c71d58292
tree2fd4fe5995140681d9ef945d1be8f09adfde4486
parent17c00a2fed1bcc80949e0e68607bcea6af3c5358
drm/amdgpu/powerplay: enable sysfs and debugfs interfaces late

To avoid users accessing them before the module has finished
initializing them and make sure they are only created if
dpm has properly initialized.

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