Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366741
b: refs/heads/master
c: b279265
h: refs/heads/master
i:
  366739: 0190237
v: v3
  • Loading branch information
Wei Yongjun authored and Mauro Carvalho Chehab committed Mar 23, 2013
1 parent 9a2a420 commit 6e1db0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 9719afae5e589b409e137c36f89073d134f0de33
refs/heads/master: b279265cfd677b618f2aee8089073a3e4632d85b
4 changes: 2 additions & 2 deletions trunk/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static int vpfe_enable_clock(struct vpfe_device *vpfe_dev)

vpfe_dev->clks[i] =
clk_get(vpfe_dev->pdev, vpfe_cfg->clocks[i]);
if (vpfe_dev->clks[i] == NULL) {
if (IS_ERR(vpfe_dev->clks[i])) {
v4l2_err(vpfe_dev->pdev->driver,
"Failed to get clock %s\n",
vpfe_cfg->clocks[i]);
Expand All @@ -264,7 +264,7 @@ static int vpfe_enable_clock(struct vpfe_device *vpfe_dev)
return 0;
out:
for (i = 0; i < vpfe_cfg->num_clocks; i++)
if (vpfe_dev->clks[i]) {
if (!IS_ERR(vpfe_dev->clks[i])) {
clk_disable_unprepare(vpfe_dev->clks[i]);
clk_put(vpfe_dev->clks[i]);
}
Expand Down

0 comments on commit 6e1db0e

Please sign in to comment.