Skip to content

Commit

Permalink
[POWERPC] of_detach_node()'s device node argument cannot be const
Browse files Browse the repository at this point in the history
...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>
  • Loading branch information
Segher Boessenkool authored and Paul Mackerras committed Jul 22, 2007
1 parent dd68c04 commit 34f329d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion include/asm-powerpc/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 34f329d

Please sign in to comment.