提交 b1f46dd1 编写于 作者: A Alexander Shiyan 提交者: Tomi Valkeinen

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] <asn:2>*screen_base
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 6471b30f
...@@ -311,7 +311,7 @@ static int clps711x_fb_probe(struct platform_device *pdev) ...@@ -311,7 +311,7 @@ static int clps711x_fb_probe(struct platform_device *pdev)
/* Setup start FB address */ /* Setup start FB address */
writeb(info->fix.smem_start >> 28, cfb->base + CLPS711X_FBADDR); writeb(info->fix.smem_start >> 28, cfb->base + CLPS711X_FBADDR);
/* Clean FB memory */ /* 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"); cfb->lcd_pwr = devm_regulator_get(dev, "lcd");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册