“89bdd0c6f38ccf0de43d5a36ede384a730f3394e”上不存在“README.md”
提交 e7370819 编写于 作者: R Robert Jarzmik 提交者: Ulf Hansson

mmc: pxamci: prepare and unprepare the clocks

Add the clock prepare and unprepare call to the driver set_ios calls
phase. This will remove a warning once the PXA architecture is migrated
to the clock infrastructure.
Signed-off-by: NRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 578b36b6
...@@ -474,7 +474,7 @@ static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ...@@ -474,7 +474,7 @@ static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
unsigned int clk = rate / ios->clock; unsigned int clk = rate / ios->clock;
if (host->clkrt == CLKRT_OFF) if (host->clkrt == CLKRT_OFF)
clk_enable(host->clk); clk_prepare_enable(host->clk);
if (ios->clock == 26000000) { if (ios->clock == 26000000) {
/* to support 26MHz */ /* to support 26MHz */
...@@ -501,7 +501,7 @@ static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ...@@ -501,7 +501,7 @@ static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
pxamci_stop_clock(host); pxamci_stop_clock(host);
if (host->clkrt != CLKRT_OFF) { if (host->clkrt != CLKRT_OFF) {
host->clkrt = CLKRT_OFF; host->clkrt = CLKRT_OFF;
clk_disable(host->clk); clk_disable_unprepare(host->clk);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部