]> Git Repo - J-u-boot.git/blobdiff - drivers/mmc/rockchip_sdhci.c
dm: core: Replace of_offset with accessor
[J-u-boot.git] / drivers / mmc / rockchip_sdhci.c
index e33e35e4fa560f9785bb50f0bd75e95916c2ab5c..bd91f917580ae3a779f5d5f7247cd2c1e53fd612 100644 (file)
@@ -38,7 +38,7 @@ static int arasan_sdhci_probe(struct udevice *dev)
        struct clk clk;
 
 
-       max_frequency = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
+       max_frequency = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
                        "max-frequency", 0);
        ret = clk_get_by_index(dev, 0, &clk);
        if (!ret) {
@@ -50,9 +50,9 @@ static int arasan_sdhci_probe(struct udevice *dev)
        }
 
        host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD;
+       host->max_clk = max_frequency;
 
-       ret = sdhci_setup_cfg(&plat->cfg, host, max_frequency,
-                       EMMC_MIN_FREQ);
+       ret = sdhci_setup_cfg(&plat->cfg, host, 0, EMMC_MIN_FREQ);
 
        host->mmc = &plat->mmc;
        if (ret)
This page took 0.025975 seconds and 4 git commands to generate.