]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/gpu/drm/drm_crtc_helper.c
drm/kms: add crtc disable function
[net-next-2.6.git] / drivers / gpu / drm / drm_crtc_helper.c
index 9b2a54117c91c0a306c41c7eb437b641bbd58b31..fa1323ff56b3ada755acebf0a92500f090814229 100644 (file)
@@ -241,7 +241,10 @@ void drm_helper_disable_unused_functions(struct drm_device *dev)
                struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private;
                crtc->enabled = drm_helper_crtc_in_use(crtc);
                if (!crtc->enabled) {
-                       crtc_funcs->dpms(crtc, DRM_MODE_DPMS_OFF);
+                       if (crtc_funcs->disable)
+                               (*crtc_funcs->disable)(crtc);
+                       else
+                               (*crtc_funcs->dpms)(crtc, DRM_MODE_DPMS_OFF);
                        crtc->fb = NULL;
                }
        }