aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pxav2.c
diff options
context:
space:
mode:
authorChao Xie <chao.xie@marvell.com>2012-07-31 14:35:25 +0800
committerChris Ball <cjb@laptop.org>2012-09-04 13:58:15 -0400
commit164378efe7612ae1506d1a3b21fd37abf9909a5c (patch)
tree84ef3d42a863ddb6d1a2b2fcd36baec3c627fc52 /drivers/mmc/host/sdhci-pxav2.c
parente919fd200033e80b26f152d22c00a8fae7f8d548 (diff)
downloadkernel_goldelico_gta04-164378efe7612ae1506d1a3b21fd37abf9909a5c.zip
kernel_goldelico_gta04-164378efe7612ae1506d1a3b21fd37abf9909a5c.tar.gz
kernel_goldelico_gta04-164378efe7612ae1506d1a3b21fd37abf9909a5c.tar.bz2
mmc: sdhci-pxav2, sdhci-pxav3: use clk_prepare/unprepare APIs
Prepare the clock before enabling it. Signed-off-by: Chao Xie <xiechao.mail@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pxav2.c')
-rw-r--r--drivers/mmc/host/sdhci-pxav2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mmc/host/sdhci-pxav2.c
index b6ee885..8e63a9c 100644
--- a/drivers/mmc/host/sdhci-pxav2.c
+++ b/drivers/mmc/host/sdhci-pxav2.c
@@ -197,7 +197,7 @@ static int __devinit sdhci_pxav2_probe(struct platform_device *pdev)
goto err_clk_get;
}
pltfm_host->clk = clk;
- clk_enable(clk);
+ clk_prepare_enable(clk);
host->quirks = SDHCI_QUIRK_BROKEN_ADMA
| SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
@@ -239,7 +239,7 @@ static int __devinit sdhci_pxav2_probe(struct platform_device *pdev)
return 0;
err_add_host:
- clk_disable(clk);
+ clk_disable_unprepare(clk);
clk_put(clk);
err_clk_get:
sdhci_pltfm_free(pdev);
@@ -255,7 +255,7 @@ static int __devexit sdhci_pxav2_remove(struct platform_device *pdev)
sdhci_remove_host(host, 1);
- clk_disable(pltfm_host->clk);
+ clk_disable_unprepare(pltfm_host->clk);
clk_put(pltfm_host->clk);
sdhci_pltfm_free(pdev);
kfree(pxa);