mmc: sh_mmcif: separate sh_mmcif_clk_update() into setup and prepare
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 23 Apr 2015 08:16:04 +0000 (08:16 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 May 2015 07:20:06 +0000 (09:20 +0200)
commit9bb09a30ee38dcb0db9f4c5de805fe11d286db9d
tree9ec8c27485cf3063a2fc52d5f2f2a9d22f75aa7e
parent6aed678bcdee61ba8fb0b149dc4303b2f24993a2
mmc: sh_mmcif: separate sh_mmcif_clk_update() into setup and prepare

Current sh_mmcif_clk_update() is called from probe() and set_ios(),
but, the purpose of later one is just clk_prepare_enable().
No need to setup mmc->f_max/f_min in many times.
This patch separe sh_mmcif_clk_update() into clk_prepare_enable()
and mmc->f_max/f_min setup.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sh_mmcif.c