]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: mmci: Do pm_runtime_put() after the host has been added
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 11 Dec 2014 13:35:55 +0000 (14:35 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:23 +0000 (09:56 +0100)
commit6f2d3c89db7c2ef6ceb03feefa325f52ea639a41
tree65e9cc0715aa6bebafecc50ffcdaa03b10724988
parent106276bbc98bd0bac554edce0869d356596ff9ae
mmc: mmci: Do pm_runtime_put() after the host has been added

Previously the pm_runtime_put() caused the device to be runtime PM
suspended, but then immediately being resumed when we add the host.

Prevent this unnecessary runtime PM suspend/resume cycle during
->probe() by moving the call to pm_runtime_put() after mmc_add_host().

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