mmc: dw_mmc: rockchip: select proper card clock
[oweals/u-boot.git] / drivers / mmc / rockchip_dw_mmc.c
index c36eda05d20b139b71caaca95430513f91f66212..b0e52b08eb4bb99b1c3442fbb126e29653f071ec 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) {
-               debug("%s: err=%d\n", __func__, ret);
+               printf("%s: err=%d\n", __func__, ret);
                return ret;
        }
 
@@ -109,7 +109,7 @@ static int rockchip_dwmmc_probe(struct udevice *dev)
        if (ret < 0)
                return ret;
 #else
-       ret = clk_get_by_index(dev, 0, &priv->clk);
+       ret = clk_get_by_name(dev, "ciu", &priv->clk);
        if (ret < 0)
                return ret;
 #endif