Skip to content

Commit

Permalink
mmc: dw_mmc: exynos: Revert the sdr_timing assignment
Browse files Browse the repository at this point in the history
e6c784e ("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>
  • Loading branch information
Yuvaraj Kumar C D authored and Chris Ball committed Nov 8, 2013
1 parent 0a8fd09 commit 2d9f0bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mmc/host/dw_mmc-exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d9f0bd

Please sign in to comment.