mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
a4e8b91254
commit
e4bc16621d
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 *);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user