diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-27 11:35:27 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-12-10 15:25:12 -0500 |
commit | 077acbab67a785b5f5ae60e8932fcf6028072359 (patch) | |
tree | faa62a8e30e168ad2be63467d0977e32b2d5a9c8 /drivers/gpu/drm/armada | |
parent | 2f5ae4901acc6fdee939718658fa9f59c4f2217b (diff) |
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: Rob Clark <robdclark@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/armada')
-rw-r--r-- | drivers/gpu/drm/armada/armada_fbdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/armada/armada_fbdev.c b/drivers/gpu/drm/armada/armada_fbdev.c index 743570e99f90..b348b16f81e2 100644 --- a/drivers/gpu/drm/armada/armada_fbdev.c +++ b/drivers/gpu/drm/armada/armada_fbdev.c | |||
@@ -202,11 +202,11 @@ void armada_fbdev_fini(struct drm_device *dev) | |||
202 | framebuffer_release(info); | 202 | framebuffer_release(info); |
203 | } | 203 | } |
204 | 204 | ||
205 | drm_fb_helper_fini(fbh); | ||
206 | |||
205 | if (fbh->fb) | 207 | if (fbh->fb) |
206 | fbh->fb->funcs->destroy(fbh->fb); | 208 | fbh->fb->funcs->destroy(fbh->fb); |
207 | 209 | ||
208 | drm_fb_helper_fini(fbh); | ||
209 | |||
210 | priv->fbdev = NULL; | 210 | priv->fbdev = NULL; |
211 | } | 211 | } |
212 | } | 212 | } |