diff options
Diffstat (limited to 'drivers/gpu/drm/cirrus/cirrus_fbdev.c')
| -rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_fbdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c index 2bd0291168e4..2a135f253e29 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c | |||
| @@ -306,9 +306,11 @@ int cirrus_fbdev_init(struct cirrus_device *cdev) | |||
| 306 | return -ENOMEM; | 306 | return -ENOMEM; |
| 307 | 307 | ||
| 308 | cdev->mode_info.gfbdev = gfbdev; | 308 | cdev->mode_info.gfbdev = gfbdev; |
| 309 | gfbdev->helper.funcs = &cirrus_fb_helper_funcs; | ||
| 310 | spin_lock_init(&gfbdev->dirty_lock); | 309 | spin_lock_init(&gfbdev->dirty_lock); |
| 311 | 310 | ||
| 311 | drm_fb_helper_prepare(cdev->dev, &gfbdev->helper, | ||
| 312 | &cirrus_fb_helper_funcs); | ||
| 313 | |||
| 312 | ret = drm_fb_helper_init(cdev->dev, &gfbdev->helper, | 314 | ret = drm_fb_helper_init(cdev->dev, &gfbdev->helper, |
| 313 | cdev->num_crtc, CIRRUSFB_CONN_LIMIT); | 315 | cdev->num_crtc, CIRRUSFB_CONN_LIMIT); |
| 314 | if (ret) { | 316 | if (ret) { |
