diff options
Diffstat (limited to 'drivers/mfd/glamo/glamo-fb.c')
-rw-r--r-- | drivers/mfd/glamo/glamo-fb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c index 66462672f52..1b07e17ad1f 100644 --- a/drivers/mfd/glamo/glamo-fb.c +++ b/drivers/mfd/glamo/glamo-fb.c @@ -884,7 +884,10 @@ static int __init glamofb_probe(struct platform_device *pdev) fbinfo->var.hsync_len = mach_info->hsync_len; fbinfo->var.vsync_len = mach_info->vsync_len; - memset(fbinfo->screen_base, 0, fbinfo->fix.smem_len); + memset(fbinfo->screen_base, 0, + mach_info->xres.max * + mach_info->yres.max * + mach_info->bpp.max / 8); glamo_engine_enable(mach_info->glamo, GLAMO_ENGINE_LCD); glamo_engine_reset(mach_info->glamo, GLAMO_ENGINE_LCD); |