summaryrefslogtreecommitdiff
path: root/drivers/video/metronomefb.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 11:13:33 -0700
committerPaul Mundt <lethal@linux-sh.org>2011-06-02 17:25:35 +0900
commit1b86d775dd4c13967e1895df09d0cef198956e81 (patch)
tree04e55246c554975d4a3378b1b3ed7c8640539fca /drivers/video/metronomefb.c
parentbb8b26627267a82c49f47fc52a0785f079a7b063 (diff)
video: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/metronomefb.c')
-rw-r--r--drivers/video/metronomefb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/metronomefb.c b/drivers/video/metronomefb.c
index ed64edfd2c43..97d45e5115e2 100644
--- a/drivers/video/metronomefb.c
+++ b/drivers/video/metronomefb.c
@@ -628,12 +628,10 @@ static int __devinit metronomefb_probe(struct platform_device *dev)
/* we need to add a spare page because our csum caching scheme walks
* to the end of the page */
videomemorysize = PAGE_SIZE + (fw * fh);
- videomemory = vmalloc(videomemorysize);
+ videomemory = vzalloc(videomemorysize);
if (!videomemory)
goto err_fb_rel;
- memset(videomemory, 0, videomemorysize);
-
info->screen_base = (char __force __iomem *)videomemory;
info->fbops = &metronomefb_ops;