From: Fabio Estevam Date: Fri, 22 Feb 2013 00:42:39 +0000 (-0800) Subject: drivers/video/mx3fb.c: use NULL for pointer X-Git-Tag: MMI-PSA29.97-13-9~14988^2~125 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3d8496e9c841874faf4f2c850d2322453c89e94;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drivers/video/mx3fb.c: use NULL for pointer Fix the following sparse error: drivers/video/mx3fb.c:1309:28: warning: Using plain integer as NULL pointer Signed-off-by: Fabio Estevam Acked-by: Guennadi Liakhovetski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c index 736887208574..cfdb380ec81e 100644 --- a/drivers/video/mx3fb.c +++ b/drivers/video/mx3fb.c @@ -1306,7 +1306,7 @@ static int mx3fb_unmap_video_memory(struct fb_info *fbi) dma_free_writecombine(fbi->device, fbi->fix.smem_len, fbi->screen_base, fbi->fix.smem_start); - fbi->screen_base = 0; + fbi->screen_base = NULL; mutex_lock(&fbi->mm_lock); fbi->fix.smem_start = 0; fbi->fix.smem_len = 0;