From: Alexander Shiyan Date: Sat, 28 Jun 2014 06:34:06 +0000 (+0400) Subject: video: clps711x: Fix sparse warnings X-Git-Tag: v3.17-rc1~69^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b1f46dd1079d78aa46b8bc740d3e24117335f150;p=karo-tx-linux.git video: clps711x: Fix sparse warnings This patch fixes below warning: drivers/video/fbdev/clps711x-fb.c:314:17: warning: incorrect type in initializer (different address spaces) drivers/video/fbdev/clps711x-fb.c:314:17: expected void *__p drivers/video/fbdev/clps711x-fb.c:314:17: got char [noderef] *screen_base Reported-by: kbuild test robot Signed-off-by: Alexander Shiyan Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c index 4d17fbb3ffab..49a7bb4ef02f 100644 --- a/drivers/video/fbdev/clps711x-fb.c +++ b/drivers/video/fbdev/clps711x-fb.c @@ -311,7 +311,7 @@ static int clps711x_fb_probe(struct platform_device *pdev) /* Setup start FB address */ writeb(info->fix.smem_start >> 28, cfb->base + CLPS711X_FBADDR); /* Clean FB memory */ - memset(info->screen_base, 0, cfb->buffsize); + memset_io(info->screen_base, 0, cfb->buffsize); } cfb->lcd_pwr = devm_regulator_get(dev, "lcd");