]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc64140f951f054ef3cdb5bff4c24779e7f3696a1
treef0ad8ade5231eb3413e3704039425e6de8ccf3ad
parent1a0e24c088d0d0a206da20942c0dd0053276c9b0
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