diff options
Diffstat (limited to 'drivers/gpu/drm/cirrus/cirrus_main.c')
-rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_main.c b/drivers/gpu/drm/cirrus/cirrus_main.c index 6a9b12e88d46..364474c66202 100644 --- a/drivers/gpu/drm/cirrus/cirrus_main.c +++ b/drivers/gpu/drm/cirrus/cirrus_main.c | |||
@@ -42,13 +42,13 @@ int cirrus_framebuffer_init(struct drm_device *dev, | |||
42 | { | 42 | { |
43 | int ret; | 43 | int ret; |
44 | 44 | ||
45 | drm_helper_mode_fill_fb_struct(&gfb->base, mode_cmd); | ||
46 | gfb->obj = obj; | ||
45 | ret = drm_framebuffer_init(dev, &gfb->base, &cirrus_fb_funcs); | 47 | ret = drm_framebuffer_init(dev, &gfb->base, &cirrus_fb_funcs); |
46 | if (ret) { | 48 | if (ret) { |
47 | DRM_ERROR("drm_framebuffer_init failed: %d\n", ret); | 49 | DRM_ERROR("drm_framebuffer_init failed: %d\n", ret); |
48 | return ret; | 50 | return ret; |
49 | } | 51 | } |
50 | drm_helper_mode_fill_fb_struct(&gfb->base, mode_cmd); | ||
51 | gfb->obj = obj; | ||
52 | return 0; | 52 | return 0; |
53 | } | 53 | } |
54 | 54 | ||