mmc: core: Attach PM domain prior probing of SDIO func driver
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 10:18:25 +0000 (12:18 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 4 Jun 2015 08:03:51 +0000 (10:03 +0200)
commit1ef48e3ded7d25a6c382c4c74f44474e76038275
tree04d0144ef54390d169563ab2322846dfe9e56255
parent3056c49c35c1e8cc303e79c7085579ff0729a83b
mmc: core: Attach PM domain prior probing of SDIO func driver

Other subsystem buses attach PM domains during probe, but prior calling
the driver's ->probe() method. During the removal phase, detaching the PM
domain will be done after invoking the driver's ->remove() callback.

Convert the SDIO bus to follow this behavior and add error handling.

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