summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJason Chen <b02280@freescale.com>2011-08-02 15:27:59 +0800
committerJason Chen <b02280@freescale.com>2011-08-03 11:28:41 +0800
commita8d6e9bf1b7eacd48d954b69b9d8cae34c9117bc (patch)
tree2edd31a41d4bbded6f5b08cca073406688c39cfa /drivers
parentafcf844837631812bbbc6a763eae6ce43a77f52b (diff)
ENGR00154132 ipuv3 fb: add fb unblank event after set var
1. some display dev need unblank event to power up. 2. add EOF to disp dev string to avoid overflow error. Signed-off-by: Jason Chen <b02280@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/mxc/mxc_ipuv3_fb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c
index a27815096415..d1252bae883c 100644
--- a/drivers/video/mxc/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc/mxc_ipuv3_fb.c
@@ -1640,6 +1640,7 @@ static int mxcfb_option_setup(struct platform_device *pdev)
if (!strncmp(opt, "dev=", 4)) {
memcpy(pdata->disp_dev, opt + 4, strlen(opt) - 4);
+ pdata->disp_dev[strlen(opt) - 4] = '\0';
continue;
}
if (!strncmp(opt, "if=", 3)) {
@@ -1759,6 +1760,12 @@ static int mxcfb_register(struct fb_info *fbi)
fbi->flags &= ~FBINFO_MISC_USEREVENT;
console_unlock();
+ if (mxcfbi->next_blank == FB_BLANK_UNBLANK) {
+ console_lock();
+ fb_blank(fbi, FB_BLANK_UNBLANK);
+ console_unlock();
+ }
+
ret = register_framebuffer(fbi);
if (ret < 0)
goto err2;