diff options
Diffstat (limited to 'lib/kobject.c')
-rw-r--r-- | lib/kobject.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 99f6354a5751..c742ac25228a 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -810,26 +810,6 @@ void subsystem_unregister(struct kset *s) | |||
810 | kset_unregister(s); | 810 | kset_unregister(s); |
811 | } | 811 | } |
812 | 812 | ||
813 | /** | ||
814 | * subsystem_create_file - export sysfs attribute file. | ||
815 | * @s: subsystem. | ||
816 | * @a: subsystem attribute descriptor. | ||
817 | */ | ||
818 | |||
819 | int subsys_create_file(struct kset *s, struct subsys_attribute *a) | ||
820 | { | ||
821 | int error = 0; | ||
822 | |||
823 | if (!s || !a) | ||
824 | return -EINVAL; | ||
825 | |||
826 | if (kset_get(s)) { | ||
827 | error = sysfs_create_file(&s->kobj, &a->attr); | ||
828 | kset_put(s); | ||
829 | } | ||
830 | return error; | ||
831 | } | ||
832 | |||
833 | static void kset_release(struct kobject *kobj) | 813 | static void kset_release(struct kobject *kobj) |
834 | { | 814 | { |
835 | struct kset *kset = container_of(kobj, struct kset, kobj); | 815 | struct kset *kset = container_of(kobj, struct kset, kobj); |
@@ -927,4 +907,3 @@ EXPORT_SYMBOL(kset_unregister); | |||
927 | 907 | ||
928 | EXPORT_SYMBOL(subsystem_register); | 908 | EXPORT_SYMBOL(subsystem_register); |
929 | EXPORT_SYMBOL(subsystem_unregister); | 909 | EXPORT_SYMBOL(subsystem_unregister); |
930 | EXPORT_SYMBOL(subsys_create_file); | ||