diff options
author | Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> | 2020-03-31 11:04:06 +0530 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-04-22 20:41:55 +0800 |
commit | 29617ca39a087a3c78a2ea2515090b4aa24ad014 (patch) | |
tree | 6cda0ab0903469d879b9027cff0a2345c0384218 /drivers | |
parent | 7a65b8b6bb9992e3d07ca9aa44ee3a941fd67d0d (diff) | |
download | u-boot-29617ca39a087a3c78a2ea2515090b4aa24ad014.tar.gz u-boot-29617ca39a087a3c78a2ea2515090b4aa24ad014.tar.bz2 u-boot-29617ca39a087a3c78a2ea2515090b4aa24ad014.zip |
drivers: mmc: iproc_sdhci: move host.mmc init before sdhci_setup_cfg
move host.mmc before sdhci_setup_cfg
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Signed-off-by: Bharat Kumar Reddy Gooty <bharat.gooty@broadcom.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/iproc_sdhci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c index 0f4d608869..c2319b4134 100644 --- a/drivers/mmc/iproc_sdhci.c +++ b/drivers/mmc/iproc_sdhci.c @@ -212,6 +212,11 @@ static int iproc_sdhci_probe(struct udevice *dev) memcpy(&iproc_host->host, host, sizeof(struct sdhci_host)); + iproc_host->host.mmc = &plat->mmc; + iproc_host->host.mmc->dev = dev; + iproc_host->host.mmc->priv = &iproc_host->host; + upriv->mmc = iproc_host->host.mmc; + ret = sdhci_setup_cfg(&plat->cfg, &iproc_host->host, f_min_max[1], f_min_max[0]); if (ret) { @@ -219,11 +224,6 @@ static int iproc_sdhci_probe(struct udevice *dev) return ret; } - iproc_host->host.mmc = &plat->mmc; - iproc_host->host.mmc->dev = dev; - iproc_host->host.mmc->priv = &iproc_host->host; - upriv->mmc = iproc_host->host.mmc; - return sdhci_probe(dev); } |