1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-22 10:31:56 +02:00

fdt: remove fdtdec_get_alias_node() function

The fdt_path_offset() checks an alias too.

fdtdec_get_alias_node(blob, "foo") is equivalent to
fdt_path_offset(blob, "foo").

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Masahiro Yamada
2014-11-21 19:47:08 +09:00
committed by Simon Glass
parent 85bafb6da4
commit 0bd4e39d2b
3 changed files with 1 additions and 27 deletions

View File

@@ -389,17 +389,6 @@ int fdtdec_add_aliases_for_id(const void *blob, const char *name,
int fdtdec_get_alias_seq(const void *blob, const char *base, int node,
int *seqp);
/**
* Get the offset of the given alias node
*
* This looks up an alias in /aliases then finds the offset of that node.
*
* @param blob Device tree blob (if NULL, then error is returned)
* @param name Alias name, e.g. "console"
* @return Node offset referred to by that alias, or -ve FDT_ERR_...
*/
int fdtdec_get_alias_node(const void *blob, const char *name);
/**
* Get the offset of the given chosen node
*