提交 34f329db 编写于 作者: S Segher Boessenkool 提交者: Paul Mackerras

[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: NSegher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 dd68c048
...@@ -1218,7 +1218,7 @@ void of_attach_node(struct device_node *np) ...@@ -1218,7 +1218,7 @@ void of_attach_node(struct device_node *np)
* a reference to the node. The memory associated with the node * a reference to the node. The memory associated with the node
* is not freed until its refcount goes to zero. * 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; struct device_node *parent;
......
...@@ -139,7 +139,7 @@ extern unsigned long __init of_get_flat_dt_root(void); ...@@ -139,7 +139,7 @@ extern unsigned long __init of_get_flat_dt_root(void);
/* For updating the device tree at runtime */ /* For updating the device tree at runtime */
extern void of_attach_node(struct device_node *); 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 */ /* Other Prototypes */
extern void finish_device_tree(void); extern void finish_device_tree(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册