mmc: sdio: Claim host in sdio_reset_comm()

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt
2009-07-29 10:22:03 -07:00
committed by Colin Cross
parent cfc51f6f0f
commit 337cd8e8fd

View File

@@ -803,6 +803,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);
@@ -843,13 +845,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);