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/arm/mach-imx | |
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/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/imx6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx6.c b/arch/arm/mach-imx/imx6.c index 3ee42fd966..92d3e14ba1 100644 --- a/arch/arm/mach-imx/imx6.c +++ b/arch/arm/mach-imx/imx6.c @@ -363,7 +363,7 @@ static int imx6_fixup_cpus(struct device_node *root, void *context) unsigned long scu_phys_base; unsigned int max_core_index; - cpus_node = of_find_node_by_name(root, "cpus"); + cpus_node = of_find_node_by_name_address(root, "cpus"); if (!cpus_node) return 0; |