OSDN Git Service

mmc: sdhci-esdhc-imx: Fixup ->remove()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 11 Dec 2014 13:56:15 +0000 (14:56 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:21 +0000 (09:56 +0100)
commit0b41436840730004b1e7aec002b08ba1b56309f9
tree88ea23a2bf8ebf382cc5f201c5554f5138e4ed7e
parent0ac223a43913b0d2d73faa58cf0b2744ca33ef9c
mmc: sdhci-esdhc-imx: Fixup ->remove()

Since sdhci_remove_host() access the device, we need to make sure it's
runtime PM resumed.

To handle clock gating properly in remove, we first have to make sure
the clocks are ungated.

To fix both these issues, by invoking pm_runtime_get_sync() early in
->remove() callback. Later once we disabled runtime PM, we can restore
the usage count.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c