drm/radeon: add pm sysfs files late
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Sep 2015 20:45:52 +0000 (16:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 00:45:58 +0000 (09:45 +0900)
commitf3fd6d9c6a8ffc3d5c4a866d7d2e51c4646ff408
tree8db16575b4e7a20b0749877fb607532c75fb923b
parentb40de58cccbd9d9ad4ea89d5ccb9365192d182cf
drm/radeon: add pm sysfs files late

commit 51a4726b04e880fdd9b4e0e58b13f70b0a68a7f5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_pm.c