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)
commit88ac2a2c30468bb9f750170d92f7dd1ab91ddcbb
treee10eeafe6b214c135bf786269bec3a85c0bdc06e
parent04974df8049fc4240d22759a91e035082ccd18b4
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