projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.denx.de/u-boot-blackfin
[platform/kernel/u-boot.git]
/
common
/
fdt_support.c
diff --git
a/common/fdt_support.c
b/common/fdt_support.c
index
b7d4fe5
..
b6f252a
100644
(file)
--- 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
}
}
#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);
+}