summaryrefslogtreecommitdiffstats
path: root/common/oftree.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-03-07 15:00:20 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-03-08 13:26:48 +0100
commit55541c0071d667da61f87231eb7516193e138330 (patch)
tree3eb109d1656dde5c33610897139122a1daf3f45c /common/oftree.c
parenteca2c6c532a74ba8de7908f27fa94e08b86b9927 (diff)
downloadbarebox-55541c0071d667da61f87231eb7516193e138330.tar.gz
barebox-55541c0071d667da61f87231eb7516193e138330.tar.xz
of: rename of_find_node_by_name() to of_find_node_by_name_address()
of_find_node_by_name() has the same name as the corresponding kernel function but a different semantics. A node name is comprised of the nodes name and a unit address, separated with '@'. Linux of_find_node_by_name() matches only the name before the '@' whereas the barebox function compares the full name. As several callers depend on the barebox semantics we can't just change the semantics, so rename the barebox function to of_find_node_by_name_address(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/oftree.c')
-rw-r--r--common/oftree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/oftree.c b/common/oftree.c
index 0738ab6e9e..bce0ff09d6 100644
--- a/common/oftree.c
+++ b/common/oftree.c
@@ -405,7 +405,7 @@ int of_autoenable_device_by_path(char *path)
struct device_node *node;
int ret;
- node = of_find_node_by_name(NULL, path);
+ node = of_find_node_by_name_address(NULL, path);
if (!node)
node = of_find_node_by_path(path);
@@ -442,7 +442,7 @@ int of_autoenable_i2c_by_component(char *path)
if (!IS_ENABLED(CONFIG_I2C))
return -ENODEV;
- node = of_find_node_by_name(NULL, path);
+ node = of_find_node_by_name_address(NULL, path);
if (!node)
node = of_find_node_by_path(path);
if (!node)