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/hecubafb.c | |
parent | bb8b26627267a82c49f47fc52a0785f079a7b063 (diff) | |
download | blackbird-op-linux-1b86d775dd4c13967e1895df09d0cef198956e81.tar.gz blackbird-op-linux-1b86d775dd4c13967e1895df09d0cef198956e81.zip |
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/hecubafb.c')
-rw-r--r-- | drivers/video/hecubafb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index 1b94643ecbcf..fbef15f7a218 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c @@ -231,11 +231,10 @@ static int __devinit hecubafb_probe(struct platform_device *dev) videomemorysize = (DPY_W*DPY_H)/8; - if (!(videomemory = vmalloc(videomemorysize))) + videomemory = vzalloc(videomemorysize); + if (!videomemory) return retval; - memset(videomemory, 0, videomemorysize); - info = framebuffer_alloc(sizeof(struct hecubafb_par), &dev->dev); if (!info) goto err_fballoc; |