summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-07-10 13:20:41 +0200
committerWolfram Sang <w.sang@pengutronix.de>2012-07-12 11:41:50 +0200
commit9dce4bcaaabce28f7b188e4fa4fda3ea74ae5a0d (patch)
tree6e76180559cfde30fae5b3bb21f9fad05dd2d052 /drivers/i2c
parenti2c: tegra: remove unused member variable (diff)
downloadlinux-9dce4bcaaabce28f7b188e4fa4fda3ea74ae5a0d.tar.xz
linux-9dce4bcaaabce28f7b188e4fa4fda3ea74ae5a0d.zip
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index e7738588a1e6..60d777027ce8 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -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;
}