i2c: tegra: dynamically control fast clk
authorLaxman Dewangan <ldewangan@nvidia.com>
Sat, 18 Aug 2012 19:17:47 +0000 (00:47 +0530)
committerStephen Warren <swarren@nvidia.com>
Thu, 13 Sep 2012 17:40:30 +0000 (11:40 -0600)
commitfd301cc4e5ba839050be135a178031bcd0d363a5
tree61ceb2864a9e35eed6ef70400328124944ad4e0c
parent6ad068ed63100f1bb2f65340e2de9b8727526ef8
i2c: tegra: dynamically control fast clk

Tegra I2C driver enables the fast clock during initialization
and does not disable till driver removed.
Enable this clock before transfer and disable after transfer done.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/i2c/busses/i2c-tegra.c