Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273676
b: refs/heads/master
c: 2b3d045
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Nov 3, 2011
1 parent eb682ff commit 3a106ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ac939c06f34eaba2bc4b3be1d7f6bf26f629a23
refs/heads/master: 2b3d0457b8b2562bb25e3244ea591f0f6373701b
10 changes: 5 additions & 5 deletions trunk/drivers/media/video/omap1_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1579,10 +1579,10 @@ static int __init omap1_cam_probe(struct platform_device *pdev)
pcdev->clk = clk;

pcdev->pdata = pdev->dev.platform_data;
pcdev->pflags = pcdev->pdata->flags;

if (pcdev->pdata)
if (pcdev->pdata) {
pcdev->pflags = pcdev->pdata->flags;
pcdev->camexclk = pcdev->pdata->camexclk_khz * 1000;
}

switch (pcdev->camexclk) {
case 6000000:
Expand All @@ -1592,15 +1592,15 @@ static int __init omap1_cam_probe(struct platform_device *pdev)
case 24000000:
break;
default:
/* pcdev->camexclk != 0 => pcdev->pdata != NULL */
dev_warn(&pdev->dev,
"Incorrect sensor clock frequency %ld kHz, "
"should be one of 0, 6, 8, 9.6, 12 or 24 MHz, "
"please correct your platform data\n",
pcdev->pdata->camexclk_khz);
pcdev->camexclk = 0;
case 0:
dev_info(&pdev->dev,
"Not providing sensor clock\n");
dev_info(&pdev->dev, "Not providing sensor clock\n");
}

INIT_LIST_HEAD(&pcdev->capture);
Expand Down

0 comments on commit 3a106ea

Please sign in to comment.