Skip to content

Commit

Permalink
mmc: jz4740: Use clk_prepare_enable/clk_disable_unprepare
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
  • Loading branch information
larsclausen authored and cjb committed Jun 27, 2013
1 parent b9ec274 commit fca9661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/host/jz4740_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,15 @@ static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
gpio_set_value(host->pdata->gpio_power,
!host->pdata->power_active_low);
host->cmdat |= JZ_MMC_CMDAT_INIT;
clk_enable(host->clk);
clk_prepare_enable(host->clk);
break;
case MMC_POWER_ON:
break;
default:
if (gpio_is_valid(host->pdata->gpio_power))
gpio_set_value(host->pdata->gpio_power,
host->pdata->power_active_low);
clk_disable(host->clk);
clk_disable_unprepare(host->clk);
break;
}

Expand Down

0 comments on commit fca9661

Please sign in to comment.