dm: imx: cm_fx6: Enable more driver model support
[platform/kernel/u-boot.git] / drivers / mmc / rockchip_dw_mmc.c
index d5b05b0..e7fcf89 100644 (file)
@@ -44,7 +44,7 @@ static uint rockchip_dwmmc_get_mmc_clk(struct dwmci_host *host, uint freq)
 
        ret = clk_set_rate(&priv->clk, freq);
        if (ret < 0) {
-               printf("%s: err=%d\n", __func__, ret);
+               debug("%s: err=%d\n", __func__, ret);
                return ret;
        }
 
@@ -122,7 +122,7 @@ static int rockchip_dwmmc_probe(struct udevice *dev)
        if (ret < 0)
                return ret;
 #else
-       ret = clk_get_by_name(dev, "ciu", &priv->clk);
+       ret = clk_get_by_index(dev, 0, &priv->clk);
        if (ret < 0)
                return ret;
 #endif