diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-07-06 16:21:23 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-07-06 16:21:23 -0400 |
commit | 524cd267e54a5314aa83f058bc7991b21a1cfad5 (patch) | |
tree | 0e8fd3f21a6cad040134248fff2a0a2b9095198e /drivers/mmc | |
parent | ebaaa25de8376292b2dfc8252f5213e3a28bac70 (diff) | |
parent | 094479915618c526a1409dd6704bcb4ff2c5c1c2 (diff) |
Merge branch 'for-3.6/common-clk' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra into next/clk
From Stephen Warren <swarren@wwwdotorg.org>:
This branch contains numerous changes required as a baseline in order to
convert Tegra to the common clock framework. The intention was to also
include patches to actually convert Tegra to the common clock framework.
However, those patches appeared late in the kernel cycle and currently
cause regressions on some boards, so were dropped for now.
* 'for-3.6/common-clk' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra:
ARM: tegra: Provide clock for only one PWM controller
ARM: tegra: Fix PWM clock programming
ARM: tegra: dma: rename driver name for clock to "tegra-apbdma"
ARM: tegra: Remove second instance of uart clk
crypto: add clk_prepare/clk_unprepare
ASoC: tegra: add clk_prepare/clk_unprepare
staging: nvec: add clk_prepare/clk_unprepare
spi/tegra: add clk_prepare/clk_unprepare
Input: tegra-kbc - add clk_prepare/clk_unprepare
USB: ehci-tegra: add clk_prepare/clk_unprepare
mmc: tegra: add clk_prepare/clk_unprepare
i2c: tegra: Add clk_prepare/clk_unprepare
ARM: tegra: add clk_prepare/clk_unprepare
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 6e5338a071ce..0810ccc23d7e 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -337,7 +337,7 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev) | |||
337 | rc = PTR_ERR(clk); | 337 | rc = PTR_ERR(clk); |
338 | goto err_clk_get; | 338 | goto err_clk_get; |
339 | } | 339 | } |
340 | clk_enable(clk); | 340 | clk_prepare_enable(clk); |
341 | pltfm_host->clk = clk; | 341 | pltfm_host->clk = clk; |
342 | 342 | ||
343 | host->mmc->pm_caps = plat->pm_flags; | 343 | host->mmc->pm_caps = plat->pm_flags; |
@@ -352,7 +352,7 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev) | |||
352 | return 0; | 352 | return 0; |
353 | 353 | ||
354 | err_add_host: | 354 | err_add_host: |
355 | clk_disable(pltfm_host->clk); | 355 | clk_disable_unprepare(pltfm_host->clk); |
356 | clk_put(pltfm_host->clk); | 356 | clk_put(pltfm_host->clk); |
357 | err_clk_get: | 357 | err_clk_get: |
358 | if (gpio_is_valid(plat->wp_gpio)) | 358 | if (gpio_is_valid(plat->wp_gpio)) |
@@ -393,7 +393,7 @@ static int __devexit sdhci_tegra_remove(struct platform_device *pdev) | |||
393 | if (gpio_is_valid(plat->power_gpio)) | 393 | if (gpio_is_valid(plat->power_gpio)) |
394 | gpio_free(plat->power_gpio); | 394 | gpio_free(plat->power_gpio); |
395 | 395 | ||
396 | clk_disable(pltfm_host->clk); | 396 | clk_disable_unprepare(pltfm_host->clk); |
397 | clk_put(pltfm_host->clk); | 397 | clk_put(pltfm_host->clk); |
398 | 398 | ||
399 | sdhci_pltfm_free(pdev); | 399 | sdhci_pltfm_free(pdev); |