summaryrefslogtreecommitdiffstats
path: root/drivers/video/mx3fb.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-02-21 16:42:39 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 17:22:19 -0800
commitf3d8496e9c841874faf4f2c850d2322453c89e94 (patch)
tree6d48415b0a322227a5f199723fd6474b6e071372 /drivers/video/mx3fb.c
parent9ea8b9a5456e73a1793af1b96683db8a1f103fde (diff)
downloadblackbird-op-linux-f3d8496e9c841874faf4f2c850d2322453c89e94.tar.gz
blackbird-op-linux-f3d8496e9c841874faf4f2c850d2322453c89e94.zip
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 <fabio.estevam@freescale.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/mx3fb.c')
-rw-r--r--drivers/video/mx3fb.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud