[POWERPC] of_detach_node()'s device node argument cannot be const

...since it modifies it (when it sets the OF_DETACHED flag).

Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by Segher Boessenkool and committed by Paul Mackerras 34f329db dd68c048

+2 -2
+1 -1
arch/powerpc/kernel/prom.c
··· 1218 * a reference to the node. The memory associated with the node 1219 * is not freed until its refcount goes to zero. 1220 */ 1221 - void of_detach_node(const struct device_node *np) 1222 { 1223 struct device_node *parent; 1224
··· 1218 * a reference to the node. The memory associated with the node 1219 * is not freed until its refcount goes to zero. 1220 */ 1221 + void of_detach_node(struct device_node *np) 1222 { 1223 struct device_node *parent; 1224
+1 -1
include/asm-powerpc/prom.h
··· 139 140 /* For updating the device tree at runtime */ 141 extern void of_attach_node(struct device_node *); 142 - extern void of_detach_node(const struct device_node *); 143 144 /* Other Prototypes */ 145 extern void finish_device_tree(void);
··· 139 140 /* For updating the device tree at runtime */ 141 extern void of_attach_node(struct device_node *); 142 + extern void of_detach_node(struct device_node *); 143 144 /* Other Prototypes */ 145 extern void finish_device_tree(void);