aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/ast/ast_fb.c')
-rw-r--r--drivers/gpu/drm/ast/ast_fb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_fb.c b/drivers/gpu/drm/ast/ast_fb.c
index 2113894e4ff8..cba45c774552 100644
--- a/drivers/gpu/drm/ast/ast_fb.c
+++ b/drivers/gpu/drm/ast/ast_fb.c
@@ -328,8 +328,10 @@ int ast_fbdev_init(struct drm_device *dev)
328 return -ENOMEM; 328 return -ENOMEM;
329 329
330 ast->fbdev = afbdev; 330 ast->fbdev = afbdev;
331 afbdev->helper.funcs = &ast_fb_helper_funcs;
332 spin_lock_init(&afbdev->dirty_lock); 331 spin_lock_init(&afbdev->dirty_lock);
332
333 drm_fb_helper_prepare(dev, &afbdev->helper, &ast_fb_helper_funcs);
334
333 ret = drm_fb_helper_init(dev, &afbdev->helper, 335 ret = drm_fb_helper_init(dev, &afbdev->helper,
334 1, 1); 336 1, 1);
335 if (ret) { 337 if (ret) {