diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-01-30 16:58:45 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-23 21:36:14 -0700 |
commit | 69e140fa67c78933e669893c833278f9ee6a5c9b (patch) | |
tree | 0efc45cd8c3096f0fc7cd1c02c288fbfa3e98ae9 /drivers/spi/spi-tegra.c | |
parent | fee81aecf89493ae07761836a5c11262755af526 (diff) |
spi: tegra: use run time pm apis for clock control
Used run time apis for clock controls i.e. clock enable/
disable in place of direct clock apis.
Using of runtime pm api was already implemented but it was
missed on probe where it was calling clock_disable.
Fixing this issue.
bug 928541
Change-Id: I511467bd1cbe05f2a05d219d19236426a30d05d5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/78156
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>
Rebase-Id: R0e7270d44025cb4627dfba3fc8522e5916773e5f
Diffstat (limited to 'drivers/spi/spi-tegra.c')
-rw-r--r-- | drivers/spi/spi-tegra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tegra.c b/drivers/spi/spi-tegra.c index 453c9d482b55..32be449964b7 100644 --- a/drivers/spi/spi-tegra.c +++ b/drivers/spi/spi-tegra.c @@ -1390,7 +1390,7 @@ skip_dma_alloc: ret = spi_register_master(master); if (!tspi->is_clkon_always) { if (tspi->clk_state) { - clk_disable(tspi->clk); + pm_runtime_put_sync(&pdev->dev); tspi->clk_state = 0; } } |