Date:2013-04-28 21:23:40 (7 years 2 months ago)
Author:Lars C.
Commit:1de2ccaec01fed27b9985b5a6416679d59697ccf
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
680680
681681    if (val == CPUFREQ_PRECHANGE) {
682682        mmc_claim_host(cpufreq_host->mmc);
683        clk_disable(cpufreq_host->clk);
683        clk_disable_unprepare(cpufreq_host->clk);
684684    } else if (val == CPUFREQ_POSTCHANGE) {
685685        struct mmc_ios *ios = &cpufreq_host->mmc->ios;
686686        if (ios->clock)
687687            jz4740_mmc_set_clock_rate(cpufreq_host, ios->clock);
688688        if (ios->power_mode != MMC_POWER_OFF)
689            clk_enable(cpufreq_host->clk);
689            clk_prepare_enable(cpufreq_host->clk);
690690        mmc_release_host(cpufreq_host->mmc);
691691    }
692692    return 0;

Archive Download the corresponding diff file



interactive