]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sh_mmcif: Make sure the device stays active when needed in ->probe()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 11 Feb 2016 12:59:53 +0000 (13:59 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:08 +0000 (10:33 +0200)
commit5a6d4e4de64fb7dc8b88e69c720024ffdea19607
treee10eeafe6b214c135bf786269bec3a85c0bdc06e
parent980935354b5bb64cb8a594a06c16389650264ff1
mmc: sh_mmcif: Make sure the device stays active when needed in ->probe()

While accessing the device, make sure it stays active by increasing the
runtime PM usage count for it.

Let's also defer to enable runtime PM until we really need access to the
device. This also enables the error path in ->probe() to become simpler.

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