diff options
Diffstat (limited to 'drivers/gpu/drm/cirrus/cirrus_fbdev.c')
| -rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_fbdev.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c index 32bbba0a787b..2a135f253e29 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c | |||
| @@ -288,7 +288,7 @@ static int cirrus_fbdev_destroy(struct drm_device *dev, | |||
| 288 | return 0; | 288 | return 0; |
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | static struct drm_fb_helper_funcs cirrus_fb_helper_funcs = { | 291 | static const struct drm_fb_helper_funcs cirrus_fb_helper_funcs = { |
| 292 | .gamma_set = cirrus_crtc_fb_gamma_set, | 292 | .gamma_set = cirrus_crtc_fb_gamma_set, |
| 293 | .gamma_get = cirrus_crtc_fb_gamma_get, | 293 | .gamma_get = cirrus_crtc_fb_gamma_get, |
| 294 | .fb_probe = cirrusfb_create, | 294 | .fb_probe = cirrusfb_create, |
| @@ -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) { |
