Skip to content

Commit

Permalink
driver core: remove subsystem_init()
Browse files Browse the repository at this point in the history
There is only one user of it, and it is only a wrapper for kset_init().

Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Oct 12, 2007
1 parent a4e8b91 commit e4bc166
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion Documentation/kobject.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ kobj_set_kset_s(obj,subsys)
- Assumes that obj->kobj exists, and is a struct kobject.
- Sets the kset of that kobject to the kset <subsys>.

void subsystem_init(struct kset *s);
int subsystem_register(struct kset *s);
void subsystem_unregister(struct kset *s);

Expand Down
2 changes: 1 addition & 1 deletion drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ int __init classes_init(void)

/* ick, this is ugly, the things we go through to keep from showing up
* in sysfs... */
subsystem_init(&class_obj_subsys);
kset_init(&class_obj_subsys);
if (!class_obj_subsys.kobj.parent)
class_obj_subsys.kobj.parent = &class_obj_subsys.kobj;
return 0;
Expand Down
1 change: 0 additions & 1 deletion include/linux/kobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ extern struct kset hypervisor_subsys;
#define kobj_set_kset_s(obj,subsys) \
(obj)->kobj.kset = &(subsys)

extern void subsystem_init(struct kset *);
extern int __must_check subsystem_register(struct kset *);
extern void subsystem_unregister(struct kset *);

Expand Down
5 changes: 0 additions & 5 deletions lib/kobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,11 +617,6 @@ struct kobject * kset_find_obj(struct kset * kset, const char * name)
return ret;
}

void subsystem_init(struct kset *s)
{
kset_init(s);
}

int subsystem_register(struct kset *s)
{
return kset_register(s);
Expand Down

0 comments on commit e4bc166

Please sign in to comment.