Skip to content

Commit

Permalink
video: clps711x: Fix sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Shiyan authored and Tomi Valkeinen committed Jul 4, 2014
1 parent 6471b30 commit b1f46dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/clps711x-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b1f46dd

Please sign in to comment.