aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kobject.c')
-rw-r--r--lib/kobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index 0aa4e906916a..1326041213dd 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -679,7 +679,7 @@ int subsys_create_file(struct kset *s, struct subsys_attribute *a)
679 if (!s || !a) 679 if (!s || !a)
680 return -EINVAL; 680 return -EINVAL;
681 681
682 if (subsys_get(s)) { 682 if (kset_get(s)) {
683 error = sysfs_create_file(&s->kobj, &a->attr); 683 error = sysfs_create_file(&s->kobj, &a->attr);
684 kset_put(s); 684 kset_put(s);
685 } 685 }