summaryrefslogtreecommitdiffstats
path: root/drivers/video/hecubafb.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/hecubafb.c
parentbb8b26627267a82c49f47fc52a0785f079a7b063 (diff)
downloadblackbird-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.c5
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;
OpenPOWER on IntegriCloud