summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2009-07-29 10:22:03 -0700
committerArve Hjønnevåg <arve@android.com>2010-02-08 15:08:36 -0800
commita7f4cf5b4cc1c0b5ba033a9324fbe9f74b90e04f (patch)
tree3dbfc06c45f3def40069f4e3a9965fa1efd22f0c /drivers/mmc
parenta31e8fffe82b08ace454b6190d60d31779ccf3d7 (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 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);
-
-