aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorBadari Pulavarty <pbadari@us.ibm.com>2008-02-11 09:23:18 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-19 19:10:19 -0700
commit00a41db522c77af33ea5ee9837d4f043ce150249 (patch)
tree97e145d00adadcaf00f7d0997b7089c8a7d53894 /include/linux/device.h
parentdriver core: memory: semaphore to mutex (diff)
downloadlinux-dev-00a41db522c77af33ea5ee9837d4f043ce150249.tar.xz
linux-dev-00a41db522c77af33ea5ee9837d4f043ce150249.zip
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/device.h')
0 files changed, 0 insertions, 0 deletions