of_detach_node()'s device node argument cannot be const
PATCH 1/1 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 <[email protected]>
--- arch/powerpc/kernel/prom.c | 2 +- include/asm-powerpc/prom.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/kernel/prom.c +1 -1
@@ -1433,7 +1433,7 @@ void of_attach_node(struct device_node *np)* a reference to the node. The memory associated with the node * is not freed until its refcount goes to zero. */ -void of_detach_node (const struct device_node *np) +void of_detach_node (struct device_node *np) {struct device_node *parent;
include/asm-powerpc/prom.h +1 -1
@@ -160,7 +160,7 @@ extern unsigned long __init of_get_flat_dt_root(void);/* For updating the device tree at runtime */ extern void of_attach_node (struct device_node *); -extern void of_detach_node (const struct device_node *); +extern void of_detach_node (struct device_node *);/* Other Prototypes */ extern void finish_device_tree (void );
Signature · 1 line
1.5.2.1.144.gabc40-dirty
Quoted 2 lines · On Fri, 20 Jul 2007 07:58:38 +0200 Segher Boessenkool…
...since it modifies it (when it sets the
OF_DETACHEDflag).
http://patchwork.ozlabs.org/linuxppc/patch?q=Stephen%20Rothwell&id=12212
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 3 lines
Quoted 1 line
...since it modifies it (when it sets the
OF_DETACHEDflag).http://patchwork.ozlabs.org/linuxppc/patch?q=Stephen%20Rothwell&id=12212
Ah okay :-)
Segher