]> Git Repo - u-boot.git/blobdiff - arch/nios2/cpu/cpu.c
dm: core: Replace of_offset with accessor
[u-boot.git] / arch / nios2 / cpu / cpu.c
index 4f0f8fc5f8bb7c103776c89459feeccf390945c4..c1caa651742bbfb7c922a3bbc736086876150b92 100644 (file)
@@ -103,7 +103,7 @@ static int altera_nios2_get_count(struct udevice *dev)
 static int altera_nios2_probe(struct udevice *dev)
 {
        const void *blob = gd->fdt_blob;
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
 
        gd->cpu_clk = fdtdec_get_int(blob, node,
                "clock-frequency", 0);
This page took 0.025346 seconds and 4 git commands to generate.