Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330876
b: refs/heads/master
c: 561d5d7
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Mauro Carvalho Chehab committed Aug 15, 2012
1 parent 1cf281e commit 7e34b63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 52cf3e42951e8316af9ff0db002f169e3efb63e9
refs/heads/master: 561d5d78cb03fe08519a166594820c5a70f3931c
12 changes: 6 additions & 6 deletions trunk/drivers/media/platform/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ static void mx2_camera_deactivate(struct mx2_camera_dev *pcdev)
{
unsigned long flags;

clk_disable(pcdev->clk_csi);
clk_disable_unprepare(pcdev->clk_csi);
writel(0, pcdev->base_csi + CSICR1);
if (cpu_is_mx27()) {
writel(0, pcdev->base_emma + PRP_CNTL);
Expand Down Expand Up @@ -435,7 +435,7 @@ static int mx2_camera_add_device(struct soc_camera_device *icd)
if (pcdev->icd)
return -EBUSY;

ret = clk_enable(pcdev->clk_csi);
ret = clk_prepare_enable(pcdev->clk_csi);
if (ret < 0)
return ret;

Expand Down Expand Up @@ -1639,7 +1639,7 @@ static int __devinit mx27_camera_emma_init(struct mx2_camera_dev *pcdev)
goto exit_free_irq;
}

clk_enable(pcdev->clk_emma);
clk_prepare_enable(pcdev->clk_emma);

err = mx27_camera_emma_prp_reset(pcdev);
if (err)
Expand All @@ -1648,7 +1648,7 @@ static int __devinit mx27_camera_emma_init(struct mx2_camera_dev *pcdev)
return err;

exit_clk_emma_put:
clk_disable(pcdev->clk_emma);
clk_disable_unprepare(pcdev->clk_emma);
clk_put(pcdev->clk_emma);
exit_free_irq:
free_irq(pcdev->irq_emma, pcdev);
Expand Down Expand Up @@ -1785,7 +1785,7 @@ static int __devinit mx2_camera_probe(struct platform_device *pdev)
eallocctx:
if (cpu_is_mx27()) {
free_irq(pcdev->irq_emma, pcdev);
clk_disable(pcdev->clk_emma);
clk_disable_unprepare(pcdev->clk_emma);
clk_put(pcdev->clk_emma);
iounmap(pcdev->base_emma);
release_mem_region(pcdev->res_emma->start, resource_size(pcdev->res_emma));
Expand Down Expand Up @@ -1825,7 +1825,7 @@ static int __devexit mx2_camera_remove(struct platform_device *pdev)
iounmap(pcdev->base_csi);

if (cpu_is_mx27()) {
clk_disable(pcdev->clk_emma);
clk_disable_unprepare(pcdev->clk_emma);
clk_put(pcdev->clk_emma);
iounmap(pcdev->base_emma);
res = pcdev->res_emma;
Expand Down

0 comments on commit 7e34b63

Please sign in to comment.