[POWERPC] of_detach_node()'s device node argument cannot be const
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 20 Jul 2007 05:58:38 +0000 (15:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Sun, 22 Jul 2007 11:30:59 +0000 (21:30 +1000)
...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>
arch/powerpc/kernel/prom.c
include/asm-powerpc/prom.h

index bdcd23d8d8b99f8648b61a63aa4ece60f66c375a..a38197b12d3e991a22dd06850911cecdd1869cce 100644 (file)
@@ -1218,7 +1218,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;
 
index 6e391c9894ce7e513f7e75e1a62c263d5f7a6eb1..672083787a1d8eb1664ba77c5509cf58e708cd96 100644 (file)
@@ -139,7 +139,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);
This page took 0.031619 seconds and 5 git commands to generate.