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 <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2018-07-12 10:22:55 +08:00 committed by Kever Yang
parent c96295c291
commit 08c9dc10f4
1 changed files with 4 additions and 1 deletions

View File

@ -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) |