Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308463
b: refs/heads/master
c: e1fac69
h: refs/heads/master
i:
  308461: 85ad346
  308459: 4e3cd0a
  308455: c0701ef
  308447: c776a6c
v: v3
  • Loading branch information
Viresh Kumar authored and Wolfram Sang committed May 12, 2012
1 parent e9b1a42 commit 3d33c91
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: 3bf3b289c233c28aaef16546168a994070aa24a0
refs/heads/master: e1fac69f3b2c0430f56f47bf98eebac8b2da395c
10 changes: 5 additions & 5 deletions trunk/drivers/i2c/busses/i2c-designware-platdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static int __devinit dw_i2c_probe(struct platform_device *pdev)
r = -ENODEV;
goto err_free_mem;
}
clk_enable(dev->clk);
clk_prepare_enable(dev->clk);

dev->functionality =
I2C_FUNC_I2C |
Expand Down Expand Up @@ -156,7 +156,7 @@ static int __devinit dw_i2c_probe(struct platform_device *pdev)
err_iounmap:
iounmap(dev->base);
err_unuse_clocks:
clk_disable(dev->clk);
clk_disable_unprepare(dev->clk);
clk_put(dev->clk);
dev->clk = NULL;
err_free_mem:
Expand All @@ -178,7 +178,7 @@ static int __devexit dw_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 @@ -205,7 +205,7 @@ static int dw_i2c_suspend(struct device *dev)
struct platform_device *pdev = to_platform_device(dev);
struct dw_i2c_dev *i_dev = platform_get_drvdata(pdev);

clk_disable(i_dev->clk);
clk_disable_unprepare(i_dev->clk);

return 0;
}
Expand All @@ -215,7 +215,7 @@ static int dw_i2c_resume(struct device *dev)
struct platform_device *pdev = to_platform_device(dev);
struct dw_i2c_dev *i_dev = platform_get_drvdata(pdev);

clk_enable(i_dev->clk);
clk_prepare_enable(i_dev->clk);
i2c_dw_init(i_dev);

return 0;
Expand Down

0 comments on commit 3d33c91

Please sign in to comment.