Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313571
b: refs/heads/master
c: 6f786aa
h: refs/heads/master
i:
  313569: 150c134
  313567: 159f520
v: v3
  • Loading branch information
Prashant Gaikwad authored and Stephen Warren committed Jun 11, 2012
1 parent bc0bd1c commit 207dc5f
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: 6a5278d0715c5dfd42151bb6d7444db3f2ceed52
refs/heads/master: 6f786aad108ba5479d93410fb47e0f51a79f34b1
10 changes: 5 additions & 5 deletions trunk/drivers/i2c/busses/i2c-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev)
u32 val;
int err = 0;

clk_enable(i2c_dev->clk);
clk_prepare_enable(i2c_dev->clk);

tegra_periph_reset_assert(i2c_dev->clk);
udelay(2);
Expand Down Expand Up @@ -372,7 +372,7 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev)
if (tegra_i2c_flush_fifos(i2c_dev))
err = -ETIMEDOUT;

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

if (i2c_dev->irq_disabled) {
i2c_dev->irq_disabled = 0;
Expand Down Expand Up @@ -546,14 +546,14 @@ static int tegra_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
if (i2c_dev->is_suspended)
return -EBUSY;

clk_enable(i2c_dev->clk);
clk_prepare_enable(i2c_dev->clk);
for (i = 0; i < num; i++) {
int stop = (i == (num - 1)) ? 1 : 0;
ret = tegra_i2c_xfer_msg(i2c_dev, &msgs[i], stop);
if (ret)
break;
}
clk_disable(i2c_dev->clk);
clk_disable_unprepare(i2c_dev->clk);
return ret ?: i;
}

Expand Down Expand Up @@ -666,7 +666,7 @@ static int __devinit tegra_i2c_probe(struct platform_device *pdev)
goto err_free;
}

clk_enable(i2c_dev->i2c_clk);
clk_prepare_enable(i2c_dev->i2c_clk);

i2c_set_adapdata(&i2c_dev->adapter, i2c_dev);
i2c_dev->adapter.owner = THIS_MODULE;
Expand Down

0 comments on commit 207dc5f

Please sign in to comment.