mmc: sdio: Claim host in sdio_reset_comm()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 74d19f3..57c752b 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -891,6 +891,8 @@
int err;
printk("%s():\n", __func__);
+ mmc_claim_host(host);
+
mmc_go_idle(host);
mmc_set_clock(host, host->f_min);
@@ -931,13 +933,12 @@
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);
-
-