Change-Id: I2fa35ee9291c4c60e55fc11d923ae686a8f81920
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
{
struct mmc_host *host = card->host;
u32 ocr;
+ u32 rocr;
int err;
printk("%s():\n", __func__);
if (err)
goto err;
- host->ocr = mmc_select_voltage(host, ocr);
- if (!host->ocr) {
+ rocr = mmc_select_voltage(host, ocr);
+ if (!rocr) {
err = -EINVAL;
goto err;
}
- err = mmc_send_io_op_cond(host, host->ocr, &ocr);
+ err = mmc_sdio_init_card(host, rocr, card, 0);
if (err)
goto err;