diff options
Diffstat (limited to 'arch/powerpc/boot/libfdt-wrapper.c')
-rw-r--r-- | arch/powerpc/boot/libfdt-wrapper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/boot/libfdt-wrapper.c b/arch/powerpc/boot/libfdt-wrapper.c index 1daa73f08ba8..9276327bc2bb 100644 --- a/arch/powerpc/boot/libfdt-wrapper.c +++ b/arch/powerpc/boot/libfdt-wrapper.c | |||
@@ -105,6 +105,11 @@ static int fdt_wrapper_setprop(const void *devp, const char *name, | |||
105 | return check_err(rc); | 105 | return check_err(rc); |
106 | } | 106 | } |
107 | 107 | ||
108 | static int fdt_wrapper_del_node(const void *devp) | ||
109 | { | ||
110 | return fdt_del_node(fdt, devp_offset(devp)); | ||
111 | } | ||
112 | |||
108 | static void *fdt_wrapper_get_parent(const void *devp) | 113 | static void *fdt_wrapper_get_parent(const void *devp) |
109 | { | 114 | { |
110 | return offset_devp(fdt_parent_offset(fdt, devp_offset(devp))); | 115 | return offset_devp(fdt_parent_offset(fdt, devp_offset(devp))); |
@@ -174,6 +179,7 @@ void fdt_init(void *blob) | |||
174 | dt_ops.create_node = fdt_wrapper_create_node; | 179 | dt_ops.create_node = fdt_wrapper_create_node; |
175 | dt_ops.find_node_by_prop_value = fdt_wrapper_find_node_by_prop_value; | 180 | dt_ops.find_node_by_prop_value = fdt_wrapper_find_node_by_prop_value; |
176 | dt_ops.find_node_by_compatible = fdt_wrapper_find_node_by_compatible; | 181 | dt_ops.find_node_by_compatible = fdt_wrapper_find_node_by_compatible; |
182 | dt_ops.del_node = fdt_wrapper_del_node; | ||
177 | dt_ops.get_path = fdt_wrapper_get_path; | 183 | dt_ops.get_path = fdt_wrapper_get_path; |
178 | dt_ops.finalize = fdt_wrapper_finalize; | 184 | dt_ops.finalize = fdt_wrapper_finalize; |
179 | 185 | ||