*/
if (!powered_resume) {
err = mmc_send_io_op_cond(host, host->ocr, &ocr);
- if (err) {
-#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD)
- printk("%s..%d.. ====*Identify the card as SDIO , but OCR error, so fail to initialize.===xbw[%s]===\n", \
- __FUNCTION__, __LINE__, mmc_hostname(host));
-#endif
+ if (err)
goto err;
- }
}
/*
if (err)
goto remove;
-#if defined(CONFIG_SDMMC_RK29) && defined(CONFIG_SDMMC_RK29_OLD) //old driver add the code ,reform to kernel2.6.38
- /*
- * Update oldcard with the new RCA received from the SDIO
- * device -- we're doing this so that it's updated in the
- * "card" struct when oldcard overwrites that later.
- */
- if (oldcard)
- oldcard->rca = card->rca;
-#endif
-
mmc_set_bus_mode(host, MMC_BUSMODE_PUSHPULL);
}
printk("%s():\n", __func__);
mmc_claim_host(host);
-
-#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD)
- host->sdmmc_host_hw_init(mmc_priv(host)); //added by xbw , at 2011-10-18
-#endif
mmc_go_idle(host);