]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - doc/driver-model/of-plat.txt
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / doc / driver-model / of-plat.txt
index 86e5e25300c318ee760b9ccdbc983eb724042ebb..0063bfe510cd7fbffdb01ba5a5994ac4d8369398 100644 (file)
@@ -205,7 +205,7 @@ For example:
             /* Decode the device tree data */
             struct mmc_platdata *plat = dev_get_platdata(dev);
             const void *blob = gd->fdt_blob;
-            int node = dev->of_offset;
+            int node = dev_of_offset(dev);
 
             plat->fifo_depth = fdtdec_get_int(blob, node, "fifo-depth", 0);
     #endif