From 08c9dc10f47ca595c2bb374624f506001a248556 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Thu, 12 Jul 2018 10:22:55 +0800 Subject: [PATCH] mmc: dw_mmc: rockchip: fix get ciu-sample bug 1.judge the clk_get_by_name return value 2.rename the ciu_sample to ciu-sample according to dts Change-Id: I60c9f43f8cf0dd02815ee9078f5e957dc9c6d24d Signed-off-by: Jason Zhu --- drivers/mmc/rockchip_dw_mmc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index 7155607e77..001d31e0e2 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -251,7 +251,10 @@ static int rockchip_dwmmc_probe(struct udevice *dev) ret = clk_get_by_index(dev, 0, &priv->clk); if (ret < 0) return ret; - clk_get_by_name(dev, "ciu_sample", &priv->sample_clk); + + ret = clk_get_by_name(dev, "ciu-sample", &priv->sample_clk); + if (ret < 0) + return ret; host->execute_tuning = rockchip_dwmmc_execute_tuning; #endif host->fifoth_val = MSIZE(0x2) |