drm/radeon/kms/atom: fix crtc lock ordering
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 21 Jan 2010 21:50:30 +0000 (16:50 -0500)
committerDave Airlie <airlied@redhat.com>
Sun, 24 Jan 2010 07:23:38 +0000 (17:23 +1000)
This makes crtc_prepare and crtc_commit match.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_crtc.c

index e098bd0cbd266fc7bea725522f9a9f9ad0d790f8..7af5c1f7b6dea1b8f9a2a7e2852fd7413ea05326 100644 (file)
@@ -782,8 +782,8 @@ static bool atombios_crtc_mode_fixup(struct drm_crtc *crtc,
 
 static void atombios_crtc_prepare(struct drm_crtc *crtc)
 {
-       atombios_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);
        atombios_lock_crtc(crtc, 1);
+       atombios_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);
 }
 
 static void atombios_crtc_commit(struct drm_crtc *crtc)