aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mx3_camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/mx3_camera.c')
-rw-r--r--drivers/media/video/mx3_camera.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c
index aa871c2936b3..b9cb4a436959 100644
--- a/drivers/media/video/mx3_camera.c
+++ b/drivers/media/video/mx3_camera.c
@@ -443,7 +443,7 @@ static void mx3_camera_init_videobuf(struct videobuf_queue *q,
443 V4L2_BUF_TYPE_VIDEO_CAPTURE, 443 V4L2_BUF_TYPE_VIDEO_CAPTURE,
444 V4L2_FIELD_NONE, 444 V4L2_FIELD_NONE,
445 sizeof(struct mx3_camera_buffer), icd, 445 sizeof(struct mx3_camera_buffer), icd,
446 NULL); 446 &icd->video_lock);
447} 447}
448 448
449/* First part of ipu_csi_init_interface() */ 449/* First part of ipu_csi_init_interface() */
@@ -1186,13 +1186,12 @@ static int __devinit mx3_camera_probe(struct platform_device *pdev)
1186 goto egetres; 1186 goto egetres;
1187 } 1187 }
1188 1188
1189 mx3_cam = vmalloc(sizeof(*mx3_cam)); 1189 mx3_cam = vzalloc(sizeof(*mx3_cam));
1190 if (!mx3_cam) { 1190 if (!mx3_cam) {
1191 dev_err(&pdev->dev, "Could not allocate mx3 camera object\n"); 1191 dev_err(&pdev->dev, "Could not allocate mx3 camera object\n");
1192 err = -ENOMEM; 1192 err = -ENOMEM;
1193 goto ealloc; 1193 goto ealloc;
1194 } 1194 }
1195 memset(mx3_cam, 0, sizeof(*mx3_cam));
1196 1195
1197 mx3_cam->clk = clk_get(&pdev->dev, NULL); 1196 mx3_cam->clk = clk_get(&pdev->dev, NULL);
1198 if (IS_ERR(mx3_cam->clk)) { 1197 if (IS_ERR(mx3_cam->clk)) {