Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333398
b: refs/heads/master
c: 2bdbfa9
h: refs/heads/master
v: v3
  • Loading branch information
Murali Karicheri authored and Wolfram Sang committed Sep 14, 2012
1 parent 83903af commit 71bfde3
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: c5d3cd6dc2dc106ca9fcc8cb6587754ee6cfc86e
refs/heads/master: 2bdbfa9c4a14f0015d1e189b17175a989d7c2a40
10 changes: 5 additions & 5 deletions trunk/drivers/i2c/busses/i2c-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
r = -ENODEV;
goto err_free_mem;
}
clk_enable(dev->clk);
clk_prepare_enable(dev->clk);

dev->base = ioremap(mem->start, resource_size(mem));
if (!dev->base) {
Expand Down Expand Up @@ -751,7 +751,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
err_unuse_clocks:
iounmap(dev->base);
err_mem_ioremap:
clk_disable(dev->clk);
clk_disable_unprepare(dev->clk);
clk_put(dev->clk);
dev->clk = NULL;
err_free_mem:
Expand All @@ -775,7 +775,7 @@ static int davinci_i2c_remove(struct platform_device *pdev)
i2c_del_adapter(&dev->adapter);
put_device(&pdev->dev);

clk_disable(dev->clk);
clk_disable_unprepare(dev->clk);
clk_put(dev->clk);
dev->clk = NULL;

Expand All @@ -797,7 +797,7 @@ static int davinci_i2c_suspend(struct device *dev)

/* put I2C into reset */
davinci_i2c_reset_ctrl(i2c_dev, 0);
clk_disable(i2c_dev->clk);
clk_disable_unprepare(i2c_dev->clk);

return 0;
}
Expand All @@ -807,7 +807,7 @@ static int davinci_i2c_resume(struct device *dev)
struct platform_device *pdev = to_platform_device(dev);
struct davinci_i2c_dev *i2c_dev = platform_get_drvdata(pdev);

clk_enable(i2c_dev->clk);
clk_prepare_enable(i2c_dev->clk);
/* take I2C out of reset */
davinci_i2c_reset_ctrl(i2c_dev, 1);

Expand Down

0 comments on commit 71bfde3

Please sign in to comment.