aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/mcde/mcde_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/mcde/mcde_fb.c')
-rw-r--r--drivers/video/mcde/mcde_fb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/mcde/mcde_fb.c b/drivers/video/mcde/mcde_fb.c
index f9697d2e9df..b5515b85a18 100644
--- a/drivers/video/mcde/mcde_fb.c
+++ b/drivers/video/mcde/mcde_fb.c
@@ -376,7 +376,7 @@ static int check_var(struct fb_var_screeninfo *var, struct fb_info *fbi,
ret = mcde_dss_try_video_mode(ddev, &vmode);
if (ret < 0) {
dev_vdbg(&(ddev->dev), "check_var failed "
- "mcde_dss_try_video_mode with size = %x \n", ret);
+ "mcde_dss_try_video_mode with size = %x\n", ret);
return ret;
}
vmode_to_var(&vmode, var);
@@ -416,7 +416,7 @@ static int apply_var(struct fb_info *fbi, struct mcde_display_device *ddev)
ret = reallocate_fb_mem(fbi, size);
if (ret) {
dev_vdbg(&(ddev->dev), "apply_var failed with"
- "reallocate mem with size = %d \n", size);
+ "reallocate mem with size = %d\n", size);
return ret;
}
fbi->fix.line_length = line_len;
@@ -579,6 +579,8 @@ struct fb_info *mcde_fb_create(struct mcde_display_device *ddev,
if (ret)
goto ovly_enable_failed;
+ mfb->id = ddev->id;
+
/* Register framebuffer */
ret = register_framebuffer(fbi);
if (ret)