diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2009-07-29 10:22:03 -0700 |
---|---|---|
committer | Troy Kisky <troy.kisky@boundarydevices.com> | 2013-03-05 13:38:09 -0700 |
commit | 0c427415156aefe06ddef38b2a10c05d16454ae0 (patch) | |
tree | 6d67949a070f54cf1d12b7704b0d83f195b44b9c | |
parent | a40b4ca5391011702c7efc120a97a889f6c71fc8 (diff) |
mmc: sdio: Claim host in sdio_reset_comm()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r-- | drivers/mmc/core/sdio.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index 12fa1428edef..f593082b4898 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -889,6 +889,8 @@ int sdio_reset_comm(struct mmc_card *card) int err; printk("%s():\n", __func__); + mmc_claim_host(host); + mmc_go_idle(host); mmc_set_clock(host, host->f_min); @@ -929,13 +931,12 @@ int sdio_reset_comm(struct mmc_card *card) err = sdio_enable_wide(card); if (err) goto err; - + mmc_release_host(host); return 0; - err: +err: printk("%s: Error resetting SDIO communications (%d)\n", mmc_hostname(host), err); + mmc_release_host(host); return err; } EXPORT_SYMBOL(sdio_reset_comm); - - |