diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-07-26 19:06:24 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-08-05 11:31:07 +0900 |
commit | 14bed52d276afd36b9674ee7aa2c2ad9d2f4e59e (patch) | |
tree | ca94e6432dd7394113c956e721aa115353ccee2b /drivers/mmc/msm_sdhci.c | |
parent | 6a879ec8e7ac9905ad10b98e9cd585622c64b17c (diff) | |
download | u-boot-imx-14bed52d276afd36b9674ee7aa2c2ad9d2f4e59e.zip u-boot-imx-14bed52d276afd36b9674ee7aa2c2ad9d2f4e59e.tar.gz u-boot-imx-14bed52d276afd36b9674ee7aa2c2ad9d2f4e59e.tar.bz2 |
mmc: sdhci: remove the unnecessary arguments for sdhci_setup_cfg
Some arguments don't need to pass to sdhci_setup_cfg.
Generic variable can be used in sdhci_setup_cfg, and some arguments are
already included in sdhci_host struct.
It's enough that just pass the board specific things to sdhci_setup_cfg().
After removing the unnecessary arguments, it's more simpler than before.
It doesn't consider "Version" and "Capabilities" anymore in each SoC
driver.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc/msm_sdhci.c')
-rw-r--r-- | drivers/mmc/msm_sdhci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index e90a044..a8cb9e2 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -143,9 +143,7 @@ static int msm_sdc_probe(struct udevice *dev) /* Set host controller version */ host->version = sdhci_readw(host, SDHCI_HOST_VERSION); - caps = sdhci_readl(host, SDHCI_CAPABILITIES); - ret = sdhci_setup_cfg(&plat->cfg, dev->name, caps, - 0, 0, host->version, host->quirks, 0); + ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0); host->mmc = &plat->mmc; if (ret) return ret; |