From 00a41db522c77af33ea5ee9837d4f043ce150249 Mon Sep 17 00:00:00 2001 From: Badari Pulavarty Date: Mon, 11 Feb 2008 09:23:18 -0800 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed