drm: Add drm_plane_force_disable()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 3 Jun 2013 13:10:40 +0000 (16:10 +0300)
committerDave Airlie <airlied@gmail.com>
Mon, 17 Jun 2013 08:32:54 +0000 (18:32 +1000)
commit9125e6186822b2698da17690416cd1b55c030115
tree33c993cb831125d9c59dda1b011737cfb2be54ef
parente6e792092e816bea0797995c886fb057c91d4546
drm: Add drm_plane_force_disable()

drm_plane_force_disable() will forcibly disable the plane even if user
had previously requested the plane to be enabled.

This can be used to force planes to be off when restoring the fbdev
mode.

The code was simply pulled from drm_framebuffer_remove(), which now
calls the new function as well.

v2: Check plane->fb in drm_plane_force_disable(), drop bogus comment
    about disabling crtc

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h