diff options
author | Joe Perches <joe@perches.com> | 2011-05-28 18:13:33 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-02 08:25:35 (GMT) |
commit | 1b86d775dd4c13967e1895df09d0cef198956e81 (patch) | |
tree | 04e55246c554975d4a3378b1b3ed7c8640539fca /drivers/video/arcfb.c | |
parent | bb8b26627267a82c49f47fc52a0785f079a7b063 (diff) | |
download | linux-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/arcfb.c')
-rw-r--r-- | drivers/video/arcfb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/arcfb.c b/drivers/video/arcfb.c index 3ec4923..c22e8d3 100644 --- a/drivers/video/arcfb.c +++ b/drivers/video/arcfb.c @@ -515,11 +515,10 @@ static int __devinit arcfb_probe(struct platform_device *dev) /* We need a flat backing store for the Arc's less-flat actual paged framebuffer */ - if (!(videomemory = vmalloc(videomemorysize))) + videomemory = vzalloc(videomemorysize); + if (!videomemory) return retval; - memset(videomemory, 0, videomemorysize); - info = framebuffer_alloc(sizeof(struct arcfb_par), &dev->dev); if (!info) goto err; |