kobject: properly initialize ksets
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 17:36:38 +0000 (09:36 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Mar 2008 22:47:05 +0000 (14:47 -0800)
commita4573c488dd531c6e2d308ce8a7413c4a2646207
tree2af19d9bb4472d77d057f2c5170f275cf5757765
parentd47846c5866b7d98a1173c86a39d810a06647329
kobject: properly initialize ksets

kset_initialize was calling kobject_init_internal() which didn't
initialize the kobject as well as kobject_init() was.  So have
kobject_init() call kobject_init_internal() and move the logic to
initalize the kobject there.

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