]> git.baikalelectronics.ru Git - kernel.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)
commita633eb4b11d0a7d21309dfb66e0caf5a9f5c614d
tree65e9cc0715aa6bebafecc50ffcdaa03b10724988
parente9ae6fd6a8caf2d9b781e2a98874a1eb09c087d9
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