mmc: sdio: Tidy error path in mmc_attach_sdio()
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 9 Jun 2017 12:27:17 +0000 (15:27 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:39 +0000 (10:30 +0200)
commit82e7edc216f1a066da10f224ae2e4cd83e53fc13
tree6f3048de7cd528412b5712427328a68bdcfbf533
parentbc55dcd822f98cd7c170d0aeac4ed4fb79c86bda
mmc: sdio: Tidy error path in mmc_attach_sdio()

The error path deletes the device by calling mmc_sdio_remove() which must
be called without the host claimed. Simplify the error path so it does just
that and add a comment about why we don't disable runtime PM.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio.c