aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2002-04-09 15:14:34 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:39 -0500
commit12e339ac6e31a34fe42396aec8fb1c0b43caf61e (patch)
tree28427e04e49ba7b5f1cabd9da33a9240f30acfae /lib
parent6d06adfaf82d154023141ddc0c9de18b6a49090b (diff)
Kset: remove kset_add function
No one is calling this anymore, so just remove it and hard-code the one internal-use of it. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index 3326281c96b6..c321f1910cc2 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -710,17 +710,6 @@ struct sysfs_ops kobj_sysfs_ops = {
710}; 710};
711 711
712/** 712/**
713 * kset_add - add a kset object to the hierarchy.
714 * @k: kset.
715 */
716
717int kset_add(struct kset * k)
718{
719 return kobject_add_internal(&k->kobj);
720}
721
722
723/**
724 * kset_register - initialize and add a kset. 713 * kset_register - initialize and add a kset.
725 * @k: kset. 714 * @k: kset.
726 */ 715 */
@@ -733,7 +722,7 @@ int kset_register(struct kset * k)
733 return -EINVAL; 722 return -EINVAL;
734 723
735 kset_init(k); 724 kset_init(k);
736 err = kset_add(k); 725 err = kobject_add_internal(&k->kobj);
737 if (err) 726 if (err)
738 return err; 727 return err;
739 kobject_uevent(&k->kobj, KOBJ_ADD); 728 kobject_uevent(&k->kobj, KOBJ_ADD);