aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/armada/armada_fbdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/armada/armada_fbdev.c')
-rw-r--r--drivers/gpu/drm/armada/armada_fbdev.c4
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}