summaryrefslogtreecommitdiff
path: root/drivers/video/broadsheetfb.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 22:13:33 +0400
committerPaul Mundt <lethal@linux-sh.org>2011-06-02 12:25:35 +0400
commit1b86d775dd4c13967e1895df09d0cef198956e81 (patch)
tree04e55246c554975d4a3378b1b3ed7c8640539fca /drivers/video/broadsheetfb.c
parentbb8b26627267a82c49f47fc52a0785f079a7b063 (diff)
downloadlinux-1b86d775dd4c13967e1895df09d0cef198956e81.tar.xz
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/broadsheetfb.c')
-rw-r--r--drivers/video/broadsheetfb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c
index ebda6876d3a9..377dde3d5bfc 100644
--- a/drivers/video/broadsheetfb.c
+++ b/drivers/video/broadsheetfb.c
@@ -1101,12 +1101,10 @@ static int __devinit broadsheetfb_probe(struct platform_device *dev)
videomemorysize = roundup((dpyw*dpyh), PAGE_SIZE);
- videomemory = vmalloc(videomemorysize);
+ videomemory = vzalloc(videomemorysize);
if (!videomemory)
goto err_fb_rel;
- memset(videomemory, 0, videomemorysize);
-
info->screen_base = (char *)videomemory;
info->fbops = &broadsheetfb_ops;