diff options
author | Wolfgang Denk <wd@denx.de> | 2010-04-08 00:23:11 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-04-08 00:23:11 +0200 |
commit | 797131c12595b3d0e2964b706006938c822ee874 (patch) | |
tree | 30df95c60094be128b37c392f6c031f536027e47 /common | |
parent | 92abce8731750e92d9b5adf2e506fdb50eff59bc (diff) | |
parent | 933419096e857275b8b01f1ae577162231b143ff (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'common')
-rw-r--r-- | common/fdt_support.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c index b7d4fe5..b6f252a 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -976,3 +976,16 @@ void fdt_fixup_mtdparts(void *blob, void *node_info, int node_info_size) } } #endif + +void fdt_del_node_and_alias(void *blob, const char *alias) +{ + int off = fdt_path_offset(blob, alias); + + if (off < 0) + return; + + fdt_del_node(blob, off); + + off = fdt_path_offset(blob, "/aliases"); + fdt_delprop(blob, off, alias); +} |