aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/core.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-09-12 09:36:34 -0400
committerChris Ball <cjb@laptop.org>2013-10-30 20:26:26 -0400
commit0f791fdad82a02af013e4fc8c385dc690080c366 (patch)
tree265a07101e0165b05fae01cb9236f142578d47b1 /drivers/mmc/core/core.c
parent4a065193c46a16f1ddf20622c7011c8f327e0478 (diff)
mmc: core: Let mmc_set_signal_voltage take ocr as parameter
This is yet another step of restructure code to be able to fixup the setup of the negotiated ocr mask. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core/core.c')
-rw-r--r--drivers/mmc/core/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index b66e7ab2ad43..5909ba46b8f2 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1397,7 +1397,7 @@ int __mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage)
1397 1397
1398} 1398}
1399 1399
1400int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage) 1400int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage, u32 ocr)
1401{ 1401{
1402 struct mmc_command cmd = {0}; 1402 struct mmc_command cmd = {0};
1403 int err = 0; 1403 int err = 0;
@@ -1479,7 +1479,7 @@ power_cycle:
1479 if (err) { 1479 if (err) {
1480 pr_debug("%s: Signal voltage switch failed, " 1480 pr_debug("%s: Signal voltage switch failed, "
1481 "power cycling card\n", mmc_hostname(host)); 1481 "power cycling card\n", mmc_hostname(host));
1482 mmc_power_cycle(host, host->ocr); 1482 mmc_power_cycle(host, ocr);
1483 } 1483 }
1484 1484
1485 mmc_host_clk_release(host); 1485 mmc_host_clk_release(host);