mmc: sdhci-esdhc-imx: factor out hw related initialization into function
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 12 Jul 2016 07:46:21 +0000 (15:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:57 +0000 (10:34 +0200)
commitf3f5cf3dfc3a1bcc627cf4d7c972a4adbd9d1e25
treef0ad8ade5231eb3413e3704039425e6de8ccf3ad
parent7ac6da2623a4d4b68c61bc289451ac630ae8ec35
mmc: sdhci-esdhc-imx: factor out hw related initialization into function

Move all hw related static initializations into a separate function
which helps concentrate the hw related initialization code.
And that function could also be called by other places later as a
basic hw state restore.
e.g. suspend/resume where the hw state is possible to lost due to
low power mode.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c