diff options
author | Badari Pulavarty <pbadari@us.ibm.com> | 2008-02-11 09:23:18 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-19 19:10:19 -0700 |
commit | 00a41db522c77af33ea5ee9837d4f043ce150249 (patch) | |
tree | 97e145d00adadcaf00f7d0997b7089c8a7d53894 /include/linux/sysfs.h | |
parent | da19cbcf71cde3c09587b5924d113f0c7f1fd23a (diff) |
driver core: register_memory/unregister_memory clean ups and bugfix
register_memory()/unregister_memory() never gets called with
"root". unregister_memory() is accessing kobject_name of
the object just freed up. Since no one uses the code,
lets take the code out. And also, make register_memory() static.
Another bug fix - before calling unregister_memory()
remove_memory_block() gets a ref on kobject. unregister_memory()
need to drop that ref before calling sysdev_unregister().
Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/sysfs.h')
0 files changed, 0 insertions, 0 deletions