]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/media/video/mx3_camera.c
[media] drivers/media: Use vzalloc
[linux-beck.git] / drivers / media / video / mx3_camera.c
index aa871c2936b31d9bb821067932f2103889392539..330d42e154987a0bddaecdbd9c83c442d20c2ae9 100644 (file)
@@ -1186,13 +1186,12 @@ static int __devinit mx3_camera_probe(struct platform_device *pdev)
                goto egetres;
        }
 
-       mx3_cam = vmalloc(sizeof(*mx3_cam));
+       mx3_cam = vzalloc(sizeof(*mx3_cam));
        if (!mx3_cam) {
                dev_err(&pdev->dev, "Could not allocate mx3 camera object\n");
                err = -ENOMEM;
                goto ealloc;
        }
-       memset(mx3_cam, 0, sizeof(*mx3_cam));
 
        mx3_cam->clk = clk_get(&pdev->dev, NULL);
        if (IS_ERR(mx3_cam->clk)) {