Merge git://git.denx.de/u-boot-fdt
This commit is contained in:
15
lib/fdtdec.c
15
lib/fdtdec.c
@@ -373,21 +373,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;
|
||||
|
||||
Reference in New Issue
Block a user