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/protonic-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/protonic-imx6')
-rw-r--r-- | arch/arm/boards/protonic-imx6/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c index 9b2a00c6c3..adde1be8d9 100644 --- a/arch/arm/boards/protonic-imx6/board.c +++ b/arch/arm/boards/protonic-imx6/board.c @@ -736,7 +736,7 @@ static int prt_imx6_get_id(struct prt_imx6_priv *priv) struct device_node *gpio_np = NULL; int ret; - gpio_np = of_find_node_by_name(NULL, "gpio@20a0000"); + gpio_np = of_find_node_by_name_address(NULL, "gpio@20a0000"); if (!gpio_np) return -ENODEV; |