Date:2013-04-28 21:23:40 (10 years 11 months ago)
Author:Lars C.
Commit:e7517744cb175eedf205a66c2817ede2eb1cd050
Message:mmc: jz4740: Use clk_prepare_enable/clk_disable_unprepare

In preparation to switching the jz4740 clk driver to the common clk framework
update the clk enable/disable calls to clk_prepare_enable/clk_disable_unprepare.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Files: drivers/mmc/host/jz4740_mmc.c (1 diff)

Change Details

drivers/mmc/host/jz4740_mmc.c
675675
676676    if (val == CPUFREQ_PRECHANGE) {
677677        mmc_claim_host(cpufreq_host->mmc);
678        clk_disable(cpufreq_host->clk);
678        clk_disable_unprepare(cpufreq_host->clk);
679679    } else if (val == CPUFREQ_POSTCHANGE) {
680680        struct mmc_ios *ios = &cpufreq_host->mmc->ios;
681681        if (ios->clock)
682682            jz4740_mmc_set_clock_rate(cpufreq_host, ios->clock);
683683        if (ios->power_mode != MMC_POWER_OFF)
684            clk_enable(cpufreq_host->clk);
684            clk_prepare_enable(cpufreq_host->clk);
685685        mmc_release_host(cpufreq_host->mmc);
686686    }
687687    return 0;

Archive Download the corresponding diff file



interactive