mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
Driver core: remove subsys_put()
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:
parent
27f20e5e4e
commit
6e9d930d16
4 changed files with 3 additions and 8 deletions
|
@ -681,7 +681,7 @@ int subsys_create_file(struct kset *s, struct subsys_attribute *a)
|
|||
|
||||
if (subsys_get(s)) {
|
||||
error = sysfs_create_file(&s->kobj, &a->attr);
|
||||
subsys_put(s);
|
||||
kset_put(s);
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue