diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-11-21 13:47:08 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-27 19:12:30 +0300 |
commit | 0bd4e39d2ba477f3c274aa233f5c2e1d25dbaa74 (patch) | |
tree | fe49a373528151bd1ab3b95f6bdbbf3a40fd32d3 /lib | |
parent | 85bafb6da4dddfffa78479aa49a72ae48578a4ce (diff) | |
download | u-boot-0bd4e39d2ba477f3c274aa233f5c2e1d25dbaa74.tar.xz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fdtdec.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 7c7e673aeb..f12d6a3e7d 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -370,21 +370,6 @@ int fdtdec_get_alias_seq(const void *blob, const char *base, int offset, return -ENOENT; } -int fdtdec_get_alias_node(const void *blob, const char *name) -{ - const char *prop; - int alias_node; - int len; - - if (!blob) - return -FDT_ERR_NOTFOUND; - alias_node = fdt_path_offset(blob, "/aliases"); - prop = fdt_getprop(blob, alias_node, name, &len); - if (!prop) - return -FDT_ERR_NOTFOUND; - return fdt_path_offset(blob, prop); -} - int fdtdec_get_chosen_node(const void *blob, const char *name) { const char *prop; |