diff options
author | Joe Perches <joe@perches.com> | 2011-05-28 11:13:33 -0700 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-02 17:25:35 +0900 |
commit | 1b86d775dd4c13967e1895df09d0cef198956e81 (patch) | |
tree | 04e55246c554975d4a3378b1b3ed7c8640539fca /drivers/video/broadsheetfb.c | |
parent | bb8b26627267a82c49f47fc52a0785f079a7b063 (diff) | |
download | op-kernel-dev-1b86d775dd4c13967e1895df09d0cef198956e81.zip op-kernel-dev-1b86d775dd4c13967e1895df09d0cef198956e81.tar.gz |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c index ebda687..377dde3 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; |