]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/mmc/rockchip_sdhci.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / mmc / rockchip_sdhci.c
index 13588647014c8846cfcacc5f0220e1e7ade8f2d2..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) {