]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/gpu/drm/cirrus/cirrus_fbdev.c
drm: Introduce drm_fb_helper_prepare()
[linux-beck.git] / drivers / gpu / drm / cirrus / cirrus_fbdev.c
index 2bd0291168e42cd4414670e182089757a86a08bc..2a135f253e2930dd4d06da29b1a6a0da166969a6 100644 (file)
@@ -306,9 +306,11 @@ int cirrus_fbdev_init(struct cirrus_device *cdev)
                return -ENOMEM;
 
        cdev->mode_info.gfbdev = gfbdev;
-       gfbdev->helper.funcs = &cirrus_fb_helper_funcs;
        spin_lock_init(&gfbdev->dirty_lock);
 
+       drm_fb_helper_prepare(cdev->dev, &gfbdev->helper,
+                             &cirrus_fb_helper_funcs);
+
        ret = drm_fb_helper_init(cdev->dev, &gfbdev->helper,
                                 cdev->num_crtc, CIRRUSFB_CONN_LIMIT);
        if (ret) {