drm/core: Preserve the framebuffer after removing it.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 9 Sep 2015 14:40:56 +0000 (16:40 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Sep 2015 18:14:24 +0000 (20:14 +0200)
commit13803132818cf8084d169617be060fd8e3411a98
treedab7551b9b3411ba1ebbed60023699489fe34d85
parent4dfd64862ff852df7b1198d667dda778715ee88f
drm/core: Preserve the framebuffer after removing it.

Previously RMFB and fd close chose to disable any plane that had
an active framebuffer from this file. If it was a primary plane the
crtc was disabled. However the fbdev code or any system compositor
should restore the planes anyway so there's no need to do it twice.

The old fb_id is zero'd, so there's no danger of being able to
restore the fb from fb_id.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c