提交 077acbab 编写于 作者: R Russell King

DRM: Armada: destroy framebuffer after helper

Destroy the framebuffer only after the helper, since the helper may
still be referencing the framebufer at this point.
Reviewed-by: NRob Clark <robdclark@gmail.com>
Reviewed-by: NThierry Reding <treding@nvidia.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 2f5ae490
...@@ -202,11 +202,11 @@ void armada_fbdev_fini(struct drm_device *dev) ...@@ -202,11 +202,11 @@ void armada_fbdev_fini(struct drm_device *dev)
framebuffer_release(info); framebuffer_release(info);
} }
drm_fb_helper_fini(fbh);
if (fbh->fb) if (fbh->fb)
fbh->fb->funcs->destroy(fbh->fb); fbh->fb->funcs->destroy(fbh->fb);
drm_fb_helper_fini(fbh);
priv->fbdev = NULL; priv->fbdev = NULL;
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册