mmc: sdhci-xenon: Fix the work flow in xenon_remove().
authorHu Ziji <huziji@marvell.com>
Fri, 28 Apr 2017 02:34:59 +0000 (10:34 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 28 Apr 2017 10:33:05 +0000 (12:33 +0200)
commit4cc59dffa9cb579613776cad5b777236210496d8
tree98b13f92f520f26691ec69b14a3eaf0e04c46008
parentff4143ccff314b22f03666c1d8eccd4de967df2c
mmc: sdhci-xenon: Fix the work flow in xenon_remove().

sdhci_remove_host() might execute SOFT_RESET_ALL.  Inside xenon_remove(),
Xenon SDHC should be enabled during sdhci_remove_host().

Move xenon_sdhc_unprepare after sdhci_remove_host() such that Xenon SDHC is
disabled after sdhci_remove_host() completes.

Signed-off-by: Hu Ziji <huziji@marvell.com>
Reported-by: Jisheng Zhang <jszhang@marvell.com>
Tested-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-xenon.c