aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-09-12 18:06:57 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:51:01 -0400
commit1ef4cfac01fb5e98900f5bdb2a722aac1daff11b (patch)
treefcf3e348f87729cc149224f639f3228b1702c9ae /lib/kobject.c
parent6e9d930d167f8957a12a80515f3c417a98296378 (diff)
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>
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 }