diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-03-07 15:00:20 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-03-08 13:26:48 +0100 |
commit | 55541c0071d667da61f87231eb7516193e138330 (patch) | |
tree | 3eb109d1656dde5c33610897139122a1daf3f45c /arch/riscv | |
parent | eca2c6c532a74ba8de7908f27fa94e08b86b9927 (diff) | |
download | barebox-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/riscv')
-rw-r--r-- | arch/riscv/cpu/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/cpu/core.c b/arch/riscv/cpu/core.c index 1d5902a51f..c075301b1b 100644 --- a/arch/riscv/cpu/core.c +++ b/arch/riscv/cpu/core.c @@ -43,7 +43,7 @@ static int riscv_fixup_cpus(struct device_node *root, void *context) { 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; |