summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2009-07-29 10:22:03 -0700
committerDmitry Shmidt <dimitrysh@google.com>2009-07-30 11:12:45 -0700
commit3509ff633acf767c5b43015e66940ec0dc32d71f (patch)
tree305a15b778f58888dc4b6ac58536bad9713c9ed7 /drivers/mmc
parent0fb20783eef43b8f31c6d4f0df7bff60cb461c45 (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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 63ed49400389..ad9d270c20f3 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -489,6 +489,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);
@@ -529,13 +531,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);
-
-