Date:2013-04-28 21:23:40 (7 years 1 month ago)
Author:Lars C.
Commit:20bc3ce6a53fff69d912ee3f1a6872a578e2149a
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
672672
673673    if (val == CPUFREQ_PRECHANGE) {
674674        mmc_claim_host(cpufreq_host->mmc);
675        clk_disable(cpufreq_host->clk);
675        clk_disable_unprepare(cpufreq_host->clk);
676676    } else if (val == CPUFREQ_POSTCHANGE) {
677677        struct mmc_ios *ios = &cpufreq_host->mmc->ios;
678678        if (ios->clock)
679679            jz4740_mmc_set_clock_rate(cpufreq_host, ios->clock);
680680        if (ios->power_mode != MMC_POWER_OFF)
681            clk_enable(cpufreq_host->clk);
681            clk_prepare_enable(cpufreq_host->clk);
682682        mmc_release_host(cpufreq_host->mmc);
683683    }
684684    return 0;

Archive Download the corresponding diff file



interactive