diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-09-22 06:36:41 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-09-27 04:25:52 -0400 |
commit | 52ca0f3ab568497adeac217e4167b51d9b4d4884 (patch) | |
tree | 35724e74cc0d8cc9d31a229bba21a2257cfbf5d3 /drivers/mmc | |
parent | 4b4851c65d926f46e208e4731409022d986a1355 (diff) |
clk: mmci: convert to clk_prepare()/clk_unprepare()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mmci.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 5e142b7f5ecf..7be8db0f9f7d 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -1160,10 +1160,14 @@ static int __devinit mmci_probe(struct amba_device *dev, | |||
1160 | goto host_free; | 1160 | goto host_free; |
1161 | } | 1161 | } |
1162 | 1162 | ||
1163 | ret = clk_enable(host->clk); | 1163 | ret = clk_prepare(host->clk); |
1164 | if (ret) | 1164 | if (ret) |
1165 | goto clk_free; | 1165 | goto clk_free; |
1166 | 1166 | ||
1167 | ret = clk_enable(host->clk); | ||
1168 | if (ret) | ||
1169 | goto clk_unprep; | ||
1170 | |||
1167 | host->plat = plat; | 1171 | host->plat = plat; |
1168 | host->variant = variant; | 1172 | host->variant = variant; |
1169 | host->mclk = clk_get_rate(host->clk); | 1173 | host->mclk = clk_get_rate(host->clk); |
@@ -1351,6 +1355,8 @@ static int __devinit mmci_probe(struct amba_device *dev, | |||
1351 | iounmap(host->base); | 1355 | iounmap(host->base); |
1352 | clk_disable: | 1356 | clk_disable: |
1353 | clk_disable(host->clk); | 1357 | clk_disable(host->clk); |
1358 | clk_unprep: | ||
1359 | clk_unprepare(host->clk); | ||
1354 | clk_free: | 1360 | clk_free: |
1355 | clk_put(host->clk); | 1361 | clk_put(host->clk); |
1356 | host_free: | 1362 | host_free: |
@@ -1398,6 +1404,7 @@ static int __devexit mmci_remove(struct amba_device *dev) | |||
1398 | 1404 | ||
1399 | iounmap(host->base); | 1405 | iounmap(host->base); |
1400 | clk_disable(host->clk); | 1406 | clk_disable(host->clk); |
1407 | clk_unprepare(host->clk); | ||
1401 | clk_put(host->clk); | 1408 | clk_put(host->clk); |
1402 | 1409 | ||
1403 | if (host->vcc) | 1410 | if (host->vcc) |