From 1b86d775dd4c13967e1895df09d0cef198956e81 Mon Sep 17 00:00:00 2001 From: Joe Perches Date: Sat, 28 May 2011 11:13:33 -0700 Subject: video: Convert vmalloc/memset to vzalloc Signed-off-by: Joe Perches Acked-by: Konrad Rzeszutek Wilk Signed-off-by: Paul Mundt --- drivers/video/metronomefb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers/video/metronomefb.c') diff --git a/drivers/video/metronomefb.c b/drivers/video/metronomefb.c index ed64edfd2c43..97d45e5115e2 100644 --- a/drivers/video/metronomefb.c +++ b/drivers/video/metronomefb.c @@ -628,12 +628,10 @@ static int __devinit metronomefb_probe(struct platform_device *dev) /* we need to add a spare page because our csum caching scheme walks * to the end of the page */ videomemorysize = PAGE_SIZE + (fw * fh); - videomemory = vmalloc(videomemorysize); + videomemory = vzalloc(videomemorysize); if (!videomemory) goto err_fb_rel; - memset(videomemory, 0, videomemorysize); - info->screen_base = (char __force __iomem *)videomemory; info->fbops = &metronomefb_ops; -- cgit v1.2.1