diff options
author | Prashant Gaikwad <pgaikwad@nvidia.com> | 2012-06-05 00:29:40 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-06-12 12:32:54 -0400 |
commit | cb53417efc726f3c243eaaeb9fce1d15bda05521 (patch) | |
tree | 276ddbf742cb2dc0a99bb5fc29c7c161376b2cd1 /drivers/spi/spi-tegra.c | |
parent | f762470b522014ce4ebda3ecac74eb6658da7d9d (diff) |
spi/tegra: add clk_prepare/clk_unprepare
Use clk_prepare/clk_unprepare as required by the generic clk framework.
Cc: grant.likely@secretlab.ca
cc: spi-devel-general@lists.sourceforge.net
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/spi/spi-tegra.c')
-rw-r--r-- | drivers/spi/spi-tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-tegra.c b/drivers/spi/spi-tegra.c index ae6d78a3e912..7f99ff3553a6 100644 --- a/drivers/spi/spi-tegra.c +++ b/drivers/spi/spi-tegra.c | |||
@@ -261,7 +261,7 @@ static void spi_tegra_start_transfer(struct spi_device *spi, | |||
261 | clk_set_rate(tspi->clk, speed); | 261 | clk_set_rate(tspi->clk, speed); |
262 | 262 | ||
263 | if (tspi->cur_speed == 0) | 263 | if (tspi->cur_speed == 0) |
264 | clk_enable(tspi->clk); | 264 | clk_prepare_enable(tspi->clk); |
265 | 265 | ||
266 | tspi->cur_speed = speed; | 266 | tspi->cur_speed = speed; |
267 | 267 | ||
@@ -373,7 +373,7 @@ static void tegra_spi_rx_dma_complete(struct tegra_dma_req *req) | |||
373 | spi = m->state; | 373 | spi = m->state; |
374 | spi_tegra_start_message(spi, m); | 374 | spi_tegra_start_message(spi, m); |
375 | } else { | 375 | } else { |
376 | clk_disable(tspi->clk); | 376 | clk_disable_unprepare(tspi->clk); |
377 | tspi->cur_speed = 0; | 377 | tspi->cur_speed = 0; |
378 | } | 378 | } |
379 | } | 379 | } |