]> git.sur5r.net Git - u-boot/blobdiff - drivers/core/device.c
dm: core: Add ofnode to represent device tree nodes
[u-boot] / drivers / core / device.c
index 483f8368f706b3d402299fd0902c475dbc39dc6c..27386850921bf09a50193025748d25b895167a5d 100644 (file)
@@ -60,7 +60,7 @@ static int device_bind_common(struct udevice *parent, const struct driver *drv,
        dev->platdata = platdata;
        dev->driver_data = driver_data;
        dev->name = name;
-       dev->of_offset = of_offset;
+       dev->node = offset_to_ofnode(of_offset);
        dev->parent = parent;
        dev->driver = drv;
        dev->uclass = uc;