summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-19 10:40:12 -0700
committerSimon Glass <sjg@chromium.org>2021-01-05 12:24:41 -0700
commitc23405f8176c8d32d36ad992eb203ec87c4f5507 (patch)
treec962504eb5341d8445021d36640bca18d11396ad /drivers/core
parent156004f863c06ed985ed089450977827e11cb451 (diff)
downloadu-boot-c23405f8176c8d32d36ad992eb203ec87c4f5507.tar.gz
u-boot-c23405f8176c8d32d36ad992eb203ec87c4f5507.tar.bz2
u-boot-c23405f8176c8d32d36ad992eb203ec87c4f5507.zip
dm: core: Rename dev_has_of_node() to dev_has_ofnode()
We use 'ofnode' rather than 'of_node' in U-Boot. Rename this function to fit. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c
index ba50d46eff..8c7ce220f8 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -406,7 +406,7 @@ int device_of_to_plat(struct udevice *dev)
assert(drv);
if (drv->of_to_plat &&
- (CONFIG_IS_ENABLED(OF_PLATDATA) || dev_has_of_node(dev))) {
+ (CONFIG_IS_ENABLED(OF_PLATDATA) || dev_has_ofnode(dev))) {
ret = drv->of_to_plat(dev);
if (ret)
goto fail;