video: clps711x: Fix sparse warnings
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 28 Jun 2014 06:34:06 +0000 (10:34 +0400)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 4 Jul 2014 08:04:45 +0000 (11:04 +0300)
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] <asn:2>*screen_base

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/clps711x-fb.c

index 4d17fbb3ffab0cbd7969bdafdf103dc309841952..49a7bb4ef02fae393e3cb4eb9b6fd67f76a9f42c 100644 (file)
@@ -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");