From: Yuvaraj Kumar C D Date: Tue, 22 Oct 2013 09:11:56 +0000 (+0530) Subject: mmc: dw_mmc: exynos: Revert the sdr_timing assignment X-Git-Tag: v3.13-rc1~50^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d9f0bd1d4a66ab5019194c5e8ec5a55c77dd7e3;p=karo-tx-linux.git 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 Acked-by: Seungwon Jeon Signed-off-by: Chris Ball --- 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) 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;