public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable
@ 2012-06-20 12:56 Laxman Dewangan
  2012-06-20 16:26 ` Stephen Warren
  0 siblings, 1 reply; 8+ messages in thread
From: Laxman Dewangan @ 2012-06-20 12:56 UTC (permalink / raw)
  To: khali, w.sang, swarren; +Cc: linux-i2c, linux-kernel, pgaikwad, Laxman Dewangan

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>
---
 drivers/i2c/busses/i2c-tegra.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index 00cdc10..d071cf0 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;
 	}
 
-- 
1.7.1.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-06-27 16:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20 12:56 [PATCH] i2c: tegra: use clk_disable_unprepare in place of clk_disable Laxman Dewangan
2012-06-20 16:26 ` Stephen Warren
2012-06-20 16:27   ` Stephen Warren
2012-06-25  9:46     ` Laxman Dewangan
2012-06-25 15:55       ` Stephen Warren
2012-06-26  6:27         ` Laxman Dewangan
2012-06-26 16:28           ` Stephen Warren
2012-06-27 15:59             ` Laxman Dewangan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox