i2c: tegra: use clk_disable_unprepare in place of clk_disable

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>
This commit is contained in:
Laxman Dewangan 2012-07-10 16:50:41 +05:30 committed by Wolfram Sang
parent 57c0dc3e69
commit 9dce4bcaaa
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}