diff options
Diffstat (limited to 'drivers/gpu/drm/cirrus/cirrus_main.c')
| -rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_main.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_main.c b/drivers/gpu/drm/cirrus/cirrus_main.c index 6a9b12e88d46..35cbae827771 100644 --- a/drivers/gpu/drm/cirrus/cirrus_main.c +++ b/drivers/gpu/drm/cirrus/cirrus_main.c | |||
| @@ -23,16 +23,8 @@ static void cirrus_user_framebuffer_destroy(struct drm_framebuffer *fb) | |||
| 23 | kfree(fb); | 23 | kfree(fb); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | static int cirrus_user_framebuffer_create_handle(struct drm_framebuffer *fb, | ||
| 27 | struct drm_file *file_priv, | ||
| 28 | unsigned int *handle) | ||
| 29 | { | ||
| 30 | return 0; | ||
| 31 | } | ||
| 32 | |||
| 33 | static const struct drm_framebuffer_funcs cirrus_fb_funcs = { | 26 | static const struct drm_framebuffer_funcs cirrus_fb_funcs = { |
| 34 | .destroy = cirrus_user_framebuffer_destroy, | 27 | .destroy = cirrus_user_framebuffer_destroy, |
| 35 | .create_handle = cirrus_user_framebuffer_create_handle, | ||
| 36 | }; | 28 | }; |
| 37 | 29 | ||
| 38 | int cirrus_framebuffer_init(struct drm_device *dev, | 30 | int cirrus_framebuffer_init(struct drm_device *dev, |
| @@ -42,13 +34,13 @@ int cirrus_framebuffer_init(struct drm_device *dev, | |||
| 42 | { | 34 | { |
| 43 | int ret; | 35 | int ret; |
| 44 | 36 | ||
| 37 | drm_helper_mode_fill_fb_struct(&gfb->base, mode_cmd); | ||
| 38 | gfb->obj = obj; | ||
| 45 | ret = drm_framebuffer_init(dev, &gfb->base, &cirrus_fb_funcs); | 39 | ret = drm_framebuffer_init(dev, &gfb->base, &cirrus_fb_funcs); |
| 46 | if (ret) { | 40 | if (ret) { |
| 47 | DRM_ERROR("drm_framebuffer_init failed: %d\n", ret); | 41 | DRM_ERROR("drm_framebuffer_init failed: %d\n", ret); |
| 48 | return ret; | 42 | return ret; |
| 49 | } | 43 | } |
| 50 | drm_helper_mode_fill_fb_struct(&gfb->base, mode_cmd); | ||
| 51 | gfb->obj = obj; | ||
| 52 | return 0; | 44 | return 0; |
| 53 | } | 45 | } |
| 54 | 46 | ||
