mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[ARM] Remove clk_use()/clk_unuse()
It seems that clk_use() and clk_unuse() are additional complexity which isn't required anymore. Remove them from the clock framework to avoid the additional confusion which they cause, and update all ARM machine types except for OMAP. Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
f47fc0ac7e
commit
a8d3584a2d
18 changed files with 3 additions and 122 deletions
|
|
@ -738,7 +738,6 @@ static void s3c24xx_i2c_free(struct s3c24xx_i2c *i2c)
|
|||
{
|
||||
if (i2c->clk != NULL && !IS_ERR(i2c->clk)) {
|
||||
clk_disable(i2c->clk);
|
||||
clk_unuse(i2c->clk);
|
||||
clk_put(i2c->clk);
|
||||
i2c->clk = NULL;
|
||||
}
|
||||
|
|
@ -778,7 +777,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
|
|||
|
||||
dev_dbg(&pdev->dev, "clock source %p\n", i2c->clk);
|
||||
|
||||
clk_use(i2c->clk);
|
||||
clk_enable(i2c->clk);
|
||||
|
||||
/* map the registers */
|
||||
|
|
|
|||
Loading…
Reference in a new issue