drm/radeon: add pm sysfs files late
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Sep 2015 20:45:52 +0000 (16:45 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 13 Nov 2015 18:19:32 +0000 (13:19 -0500)
commita2893d2865ff0c4dc5c2bf599746b64a8c6b5dc5
tree52a33dff999c9e6ad88804efd9d990ca87e046ce
parentaf26f0b37f10f06a2274956e8f645968976774ff
drm/radeon: add pm sysfs files late

[ Upstream commit 51a4726b04e880fdd9b4e0e58b13f70b0a68a7f5 ]

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
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_pm.c