aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2007-07-20 01:58:38 -0400
committerPaul Mackerras <paulus@samba.org>2007-07-22 07:30:59 -0400
commit34f329db54e8154cf7faf0e7c45e7c16facfbbfe (patch)
treef9f02c217b00f9f5098a272a7c11224b16d9798e /arch
parentdd68c048d7a41b725ca3c2e23155598a5781dcbb (diff)
[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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/prom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index bdcd23d8d8b9..a38197b12d3e 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1218,7 +1218,7 @@ void of_attach_node(struct device_node *np)
1218 * a reference to the node. The memory associated with the node 1218 * a reference to the node. The memory associated with the node
1219 * is not freed until its refcount goes to zero. 1219 * is not freed until its refcount goes to zero.
1220 */ 1220 */
1221void of_detach_node(const struct device_node *np) 1221void of_detach_node(struct device_node *np)
1222{ 1222{
1223 struct device_node *parent; 1223 struct device_node *parent;
1224 1224