diff options
author | Dave Airlie <airlied@redhat.com> | 2017-02-16 21:38:46 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-02-16 21:39:04 -0500 |
commit | 9ca70356a9260403c1bda40d942935e55d00c11c (patch) | |
tree | b9a7af5394d9b306d8ba2b809c729951eb54e1c5 /drivers/gpu/drm/drm_framebuffer.c | |
parent | 08293fe8d3f297a0b092855d2e94b18f1c1300d5 (diff) |
Revert "drm: Resurrect atomic rmfb code, v3"
This reverts commit 1592364de3912dad264262f4bcc61552984c9523.
This apparantly causes some regressions so pull it out for now.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_framebuffer.c')
-rw-r--r-- | drivers/gpu/drm/drm_framebuffer.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index c0e593a7f9b4..28a0108a1ab8 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c | |||
@@ -773,12 +773,6 @@ void drm_framebuffer_remove(struct drm_framebuffer *fb) | |||
773 | * in this manner. | 773 | * in this manner. |
774 | */ | 774 | */ |
775 | if (drm_framebuffer_read_refcount(fb) > 1) { | 775 | if (drm_framebuffer_read_refcount(fb) > 1) { |
776 | if (drm_drv_uses_atomic_modeset(dev)) { | ||
777 | int ret = drm_atomic_remove_fb(fb); | ||
778 | WARN(ret, "atomic remove_fb failed with %i\n", ret); | ||
779 | goto out; | ||
780 | } | ||
781 | |||
782 | drm_modeset_lock_all(dev); | 776 | drm_modeset_lock_all(dev); |
783 | /* remove from any CRTC */ | 777 | /* remove from any CRTC */ |
784 | drm_for_each_crtc(crtc, dev) { | 778 | drm_for_each_crtc(crtc, dev) { |
@@ -796,7 +790,6 @@ void drm_framebuffer_remove(struct drm_framebuffer *fb) | |||
796 | drm_modeset_unlock_all(dev); | 790 | drm_modeset_unlock_all(dev); |
797 | } | 791 | } |
798 | 792 | ||
799 | out: | ||
800 | drm_framebuffer_unreference(fb); | 793 | drm_framebuffer_unreference(fb); |
801 | } | 794 | } |
802 | EXPORT_SYMBOL(drm_framebuffer_remove); | 795 | EXPORT_SYMBOL(drm_framebuffer_remove); |