aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-09-26 14:12:00 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:51:11 -0400
commite4bc16621d82ee1fd3685dcbf889a7c49891847b (patch)
treeff851444f752264f009ff464160e040be61282b9
parenta4e8b912541d5372ae049a3b7c1979968e52c40b (diff)
driver core: remove subsystem_init()
There is only one user of it, and it is only a wrapper for kset_init(). Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--Documentation/kobject.txt1
-rw-r--r--drivers/base/class.c2
-rw-r--r--include/linux/kobject.h1
-rw-r--r--lib/kobject.c5
4 files changed, 1 insertions, 8 deletions
diff --git a/Documentation/kobject.txt b/Documentation/kobject.txt
index 5e7aca261359..ca86a885ad8f 100644
--- a/Documentation/kobject.txt
+++ b/Documentation/kobject.txt
@@ -238,7 +238,6 @@ kobj_set_kset_s(obj,subsys)
238- Assumes that obj->kobj exists, and is a struct kobject. 238- Assumes that obj->kobj exists, and is a struct kobject.
239- Sets the kset of that kobject to the kset <subsys>. 239- Sets the kset of that kobject to the kset <subsys>.
240 240
241void subsystem_init(struct kset *s);
242int subsystem_register(struct kset *s); 241int subsystem_register(struct kset *s);
243void subsystem_unregister(struct kset *s); 242void subsystem_unregister(struct kset *s);
244 243
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 3e9b04c30fb9..5b9cf06eab8f 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -861,7 +861,7 @@ int __init classes_init(void)
861 861
862 /* ick, this is ugly, the things we go through to keep from showing up 862 /* ick, this is ugly, the things we go through to keep from showing up
863 * in sysfs... */ 863 * in sysfs... */
864 subsystem_init(&class_obj_subsys); 864 kset_init(&class_obj_subsys);
865 if (!class_obj_subsys.kobj.parent) 865 if (!class_obj_subsys.kobj.parent)
866 class_obj_subsys.kobj.parent = &class_obj_subsys.kobj; 866 class_obj_subsys.kobj.parent = &class_obj_subsys.kobj;
867 return 0; 867 return 0;
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index a8a84fcccbc0..05cc5b2ddfff 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -217,7 +217,6 @@ extern struct kset hypervisor_subsys;
217#define kobj_set_kset_s(obj,subsys) \ 217#define kobj_set_kset_s(obj,subsys) \
218 (obj)->kobj.kset = &(subsys) 218 (obj)->kobj.kset = &(subsys)
219 219
220extern void subsystem_init(struct kset *);
221extern int __must_check subsystem_register(struct kset *); 220extern int __must_check subsystem_register(struct kset *);
222extern void subsystem_unregister(struct kset *); 221extern void subsystem_unregister(struct kset *);
223 222
diff --git a/lib/kobject.c b/lib/kobject.c
index fc6db6b4bfc5..b7e0646f7977 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -617,11 +617,6 @@ struct kobject * kset_find_obj(struct kset * kset, const char * name)
617 return ret; 617 return ret;
618} 618}
619 619
620void subsystem_init(struct kset *s)
621{
622 kset_init(s);
623}
624
625int subsystem_register(struct kset *s) 620int subsystem_register(struct kset *s)
626{ 621{
627 return kset_register(s); 622 return kset_register(s);