Driver core: remove subsys_get()
There are no more subsystems, it's a kset now so remove the function and the only two users, which are in the driver core. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -679,7 +679,7 @@ int subsys_create_file(struct kset *s, struct subsys_attribute *a)
|
||||
if (!s || !a)
|
||||
return -EINVAL;
|
||||
|
||||
if (subsys_get(s)) {
|
||||
if (kset_get(s)) {
|
||||
error = sysfs_create_file(&s->kobj, &a->attr);
|
||||
kset_put(s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user