of_detach_node — Remove node from the expanded device tree
int of_detach_node ( | struct device_node * np) ; |
Remove np
from the expanded device tree. Remove information about the
node from sysfs. Set the state of np
to OF_DETACHED.
of_node_put
will be called on np
. If the refcount goes to zero, the
memory associated with np
is freed.
After all of the above completes, the reconfig chain will be called with action OF_RECONFIG_DETACH_NODE.
The caller must hold a reference to np
.
This function should not be called for a node that is detached.