- /* Set host controller version */
- host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
+ ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
+ host->mmc = &plat->mmc;
+ if (ret)
+ return ret;
+ host->mmc->priv = &prv->host;
+ host->mmc->dev = dev;
+ upriv->mmc = host->mmc;