summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stm32mp
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 /arch/arm/mach-stm32mp
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 'arch/arm/mach-stm32mp')
-rw-r--r--arch/arm/mach-stm32mp/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/init.c b/arch/arm/mach-stm32mp/init.c
index 01961ae456..bcd04b210a 100644
--- a/arch/arm/mach-stm32mp/init.c
+++ b/arch/arm/mach-stm32mp/init.c
@@ -140,7 +140,7 @@ static int stm32mp15_fixup_cpus(struct device_node *root, void *_ctx)
unsigned long ctx = (unsigned long)_ctx;
struct device_node *cpus_node, *np, *tmp;
- cpus_node = of_find_node_by_name(root, "cpus");
+ cpus_node = of_find_node_by_name_address(root, "cpus");
if (!cpus_node)
return 0;