Skip to content

Commit 73eb77e

Browse files
Thomas Zimmermannhdeller
authored andcommitted
fbdev: hitfb: Fix integer-to-pointer cast
Fix the type casting from unsigned long to char __iomem *. Resolves the following warning: ../drivers/video/fbdev/hitfb.c:411:27: warning: incorrect type in assignment (different address spaces) ../drivers/video/fbdev/hitfb.c:411:27: expected char [noderef] __iomem *screen_base ../drivers/video/fbdev/hitfb.c:411:27: got void * Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Michael J. Ruhl <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent d4313a6 commit 73eb77e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/hitfb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static int hitfb_probe(struct platform_device *dev)
392392
info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |
393393
FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA;
394394

395-
info->screen_base = (void *)hitfb_fix.smem_start;
395+
info->screen_base = (char __iomem *)(uintptr_t)hitfb_fix.smem_start;
396396

397397
ret = fb_alloc_cmap(&info->cmap, 256, 0);
398398
if (unlikely(ret < 0))

0 commit comments

Comments
 (0)