summaryrefslogtreecommitdiff
path: root/include/dm/read.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dm/read.h')
-rw-r--r--include/dm/read.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/read.h b/include/dm/read.h
index d5cdd87911..fc987f7759 100644
--- a/include/dm/read.h
+++ b/include/dm/read.h
@@ -21,7 +21,7 @@ struct resource;
#if CONFIG_IS_ENABLED(OF_LIVE)
static inline const struct device_node *dev_np(const struct udevice *dev)
{
- return ofnode_to_np(dev->node);
+ return ofnode_to_np(dev_ofnode(dev));
}
#else
static inline const struct device_node *dev_np(const struct udevice *dev)