commit 4ad602c9df1e3b04979c260b5612141b4b892257 was wrongly assigning
ddr_timing value to sdr_timing.This patch fix's this by reverting
the sdr_timing assignment statement to the earlier location.

Signed-off-by: Yuvaraj Kumar C D <yuvaraj...@samsung.com>
---
 drivers/mmc/host/dw_mmc-exynos.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c
index d42e664..3423c5e 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)
        if (ret)
                return ret;
 
+       priv->sdr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div);
+
        ret = of_property_read_u32_array(np,
                        "samsung,dw-mshc-ddr-timing", timing, 2);
        if (ret)
                return ret;
 
-       priv->sdr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div);
        priv->ddr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div);
        host->priv = priv;
        return 0;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to