diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2009-07-29 10:22:03 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2010-02-08 15:08:36 -0800 |
commit | a7f4cf5b4cc1c0b5ba033a9324fbe9f74b90e04f (patch) | |
tree | 3dbfc06c45f3def40069f4e3a9965fa1efd22f0c /drivers/mmc | |
parent | a31e8fffe82b08ace454b6190d60d31779ccf3d7 (diff) |
mmc: sdio: Claim host in sdio_reset_comm()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/mmc')
-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 ebfdea444f42..a78b4dc3fd9e 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -623,6 +623,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); @@ -663,13 +665,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); - - |