summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2011-12-20 02:06:43 +0400
committerDave Airlie <airlied@redhat.com>2011-12-20 14:03:50 +0400
commite5e3b44c676be2dac97efd94e581e14a073e4ca7 (patch)
tree68101c072a982ef722a05a2434c92a2b0146a4f2 /drivers/gpu/drm/drm_crtc.c
parent81f6c7f873a69346762c9cd6347b908ba7035532 (diff)
downloadlinux-e5e3b44c676be2dac97efd94e581e14a073e4ca7.tar.xz
drm: plane: Clear plane.crtc and plane.fb after disable_plane()
These are the only indication to user space that the plane was disabled. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index e05d99791544..d9bf9d88ff43 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -1684,6 +1684,8 @@ int drm_mode_setplane(struct drm_device *dev, void *data,
/* No fb means shut it down */
if (!plane_req->fb_id) {
plane->funcs->disable_plane(plane);
+ plane->crtc = NULL;
+ plane->fb = NULL;
goto out;
}