kobject: add kobject_init_and_add function
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Dec 2007 05:31:08 +0000 (21:31 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:10 +0000 (20:40 -0800)
commitc11c4154e7ff4cebfadad849b1e22689d759c3f4
tree2038ed1677f55d3dafca6faac4a7155fb1e19166
parent244f6cee9a928103132a722292bfa0eb84114b07
kobject: add kobject_init_and_add function

Also add a kobject_init_and_add function which bundles up what a lot of
the current callers want to do all at once, and it properly handles the
memory usages, unlike kobject_register();

Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/kobject.h
lib/kobject.c