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/boards/phytec-som-imx6 | |
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/boards/phytec-som-imx6')
-rw-r--r-- | arch/arm/boards/phytec-som-imx6/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/phytec-som-imx6/board.c b/arch/arm/boards/phytec-som-imx6/board.c index 1e515a093a..c540aaeb3f 100644 --- a/arch/arm/boards/phytec-som-imx6/board.c +++ b/arch/arm/boards/phytec-som-imx6/board.c @@ -107,7 +107,7 @@ static int phycore_da9062_setup_buck_mode(void) unsigned char value; int ret; - pmic_np = of_find_node_by_name(NULL, "pmic@58"); + pmic_np = of_find_node_by_name_address(NULL, "pmic@58"); if (!pmic_np) return -ENODEV; |