]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/lib/mpspec.c
dm: core: Replace of_offset with accessor
[u-boot] / arch / x86 / lib / mpspec.c
index 17e977ce5e3d56f889e8d92d0aae92bfc298ee7e..a6e493d69af9aa814fa4398fcd5eaa510a5e5794 100644 (file)
@@ -304,7 +304,8 @@ static int mptable_add_intsrc(struct mp_config_table *mc,
        }
 
        /* Get I/O interrupt information from device tree */
-       cell = fdt_getprop(blob, dev->of_offset, "intel,pirq-routing", &len);
+       cell = fdt_getprop(blob, dev_of_offset(dev), "intel,pirq-routing",
+                          &len);
        if (!cell)
                return -ENOENT;