Skip to content

Commit

Permalink
i2c: tegra: use clk_disable_unprepare in place of clk_disable
Browse files Browse the repository at this point in the history
Use clk_disable_unprepare() inplace of clk_disable().
This was missed as part of moving clock enable/disable to
prepare/unprepare for using the common clock framework.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
  • Loading branch information
Laxman Dewangan authored and Wolfram Sang committed Jul 12, 2012
1 parent 57c0dc3 commit 9dce4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ static int __devinit tegra_i2c_probe(struct platform_device *pdev)
ret = i2c_add_numbered_adapter(&i2c_dev->adapter);
if (ret) {
dev_err(&pdev->dev, "Failed to add I2C adapter\n");
clk_disable(i2c_dev->i2c_clk);
clk_disable_unprepare(i2c_dev->i2c_clk);
return ret;
}

Expand Down

0 comments on commit 9dce4bc

Please sign in to comment.