aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuvaraj Kumar C D <yuvaraj.cd@gmail.com>2013-10-22 05:11:56 -0400
committerChris Ball <cjb@laptop.org>2013-11-08 14:27:39 -0500
commit2d9f0bd1d4a66ab5019194c5e8ec5a55c77dd7e3 (patch)
tree119307d4f4f56c2a694e4b28a3890338df55c510
parent0a8fd09ca9d4564a1f906b530ea08415a61cff58 (diff)
mmc: dw_mmc: exynos: Revert the sdr_timing assignment
e6c784eded7b3 ("mmc: dw_mmc: exynos: move the exynos private init") was wrongly assigning ddr_timing value to sdr_timing. This patch fixes this by reverting the sdr_timing assignment statement to the earlier location. Signed-off-by: Yuvaraj Kumar C D <yuvaraj.cd@samsung.com> Acked-by: Seungwon Jeon <tgih.jun@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/host/dw_mmc-exynos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c
index d42e664e78bc..3423c5ed50c7 100644
--- a/drivers/mmc/host/dw_mmc-exynos.c
+++ b/drivers/mmc/host/dw_mmc-exynos.c
@@ -251,12 +251,13 @@ static int dw_mci_exynos_parse_dt(struct dw_mci *host)
251 if (ret) 251 if (ret)
252 return ret; 252 return ret;
253 253
254 priv->sdr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div);
255
254 ret = of_property_read_u32_array(np, 256 ret = of_property_read_u32_array(np,
255 "samsung,dw-mshc-ddr-timing", timing, 2); 257 "samsung,dw-mshc-ddr-timing", timing, 2);
256 if (ret) 258 if (ret)
257 return ret; 259 return ret;
258 260
259 priv->sdr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div);
260 priv->ddr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div); 261 priv->ddr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div);
261 host->priv = priv; 262 host->priv = priv;
262 return 0; 263 return 0;