[PATCH] Driver core: unregister_node() for hotplug use

This adds a generic function 'unregister_node()'.
It is used to remove objects of a node going away
for hotplug.  All the devices on the node must be
unregistered before calling this function.

Signed-off-by: Keiichiro Tokunaga <tokunaga.keiich@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff -puN drivers/base/node.c~numa_hp_base drivers/base/node.c
This commit is contained in:
Keiichiro Tokunaga
2005-05-08 21:28:53 +09:00
committed by Greg Kroah-Hartman
parent f409661877
commit 4b45099b75
2 changed files with 19 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ struct node {
};
extern int register_node(struct node *, int, struct node *);
extern void unregister_node(struct node *node);
#define to_node(sys_device) container_of(sys_device, struct node, sysdev)