[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>
This commit is contained in:
Segher Boessenkool
2007-07-20 15:58:38 +10:00
committed by Paul Mackerras
parent dd68c048d7
commit 34f329db54
2 changed files with 2 additions and 2 deletions

View 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;