Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=12e339ac6e31a34fe42396aec8fb1c0b43caf61e
Commit:     12e339ac6e31a34fe42396aec8fb1c0b43caf61e
Parent:     6d06adfaf82d154023141ddc0c9de18b6a49090b
Author:     Greg Kroah-Hartman <[EMAIL PROTECTED]>
AuthorDate: Tue Apr 9 12:14:34 2002 -0700
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Thu Jan 24 20:40:39 2008 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 include/linux/kobject.h |    1 -
 lib/kobject.c           |   13 +------------
 2 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 2590847..63967da 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -158,7 +158,6 @@ struct kset {
 };
 
 extern void kset_init(struct kset * k);
-extern int __must_check kset_add(struct kset * k);
 extern int __must_check kset_register(struct kset * k);
 extern void kset_unregister(struct kset * k);
 extern struct kset * __must_check kset_create_and_add(const char *name,
diff --git a/lib/kobject.c b/lib/kobject.c
index 3326281..c321f19 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -710,17 +710,6 @@ struct sysfs_ops kobj_sysfs_ops = {
 };
 
 /**
- *     kset_add - add a kset object to the hierarchy.
- *     @k:     kset.
- */
-
-int kset_add(struct kset * k)
-{
-       return kobject_add_internal(&k->kobj);
-}
-
-
-/**
  *     kset_register - initialize and add a kset.
  *     @k:     kset.
  */
@@ -733,7 +722,7 @@ int kset_register(struct kset * k)
                return -EINVAL;
 
        kset_init(k);
-       err = kset_add(k);
+       err = kobject_add_internal(&k->kobj);
        if (err)
                return err;
        kobject_uevent(&k->kobj, KOBJ_ADD);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to