drm/radeon: init atpx at switcheroo register time v2
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Jul 2016 18:56:12 +0000 (14:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:36:44 +0000 (14:36 -0400)
commit69ee9742f945cda8bd0081961770cd2e3192a77a
tree96b6f91ea101cfefedf3f4a3f626584617b52967
parent6b1095eedd39b175f5ef7e50cb85f0cebb8e9ead
drm/radeon: init atpx at switcheroo register time v2

If we do it at enable time, it's too late for the feature
checks.

v2: drop .init setting as per Peter's comments

bug: https://bugzilla.kernel.org/show_bug.cgi?id=115321
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Peter Wu <peter@lekensteyn.nl>
drivers/gpu/drm/radeon/radeon_atpx_handler.c