diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2011-12-13 01:22:01 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-12-26 16:42:04 +0800 |
commit | 9ac17b107cd686ffe1ef7c038a90bc1564c4ec45 (patch) | |
tree | 55d573b0ef02b9f9f6f6d32bb3fbd763909f8615 /drivers | |
parent | 8fa58a6f9ab0ff4e8ae2b1d593d50955327abcc4 (diff) |
mmc: sdio: Claim host in sdio_reset_comm()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers')
-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 4a1ce7e0f76..903dc539b08 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -929,6 +929,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); @@ -969,13 +971,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); - - |