aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kobject.c')
-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);