aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-11-02 08:47:53 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:22 -0500
commit000f2a4d8cfc1e1cbc0aa98136015e7ae7719b46 (patch)
treef501a2d118797a88184a77be089d335c4cc48e88 /lib/kobject.c
parent4443d07fcfab39c4d2d9d7711cff983f15b374fc (diff)
Driver Core: kill subsys_attribute and default sysfs ops
Remove the no longer needed subsys_attributes, they are all converted to the more sensical kobj_attributes. There is no longer a magic fallback in sysfs attribute operations, all kobjects which create simple attributes need explicitely a ktype assigned, which tells the core what was intended here. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/kobject.c')
-rw-r--r--lib/kobject.c21
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
819int 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
833static void kset_release(struct kobject *kobj) 813static 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
928EXPORT_SYMBOL(subsystem_register); 908EXPORT_SYMBOL(subsystem_register);
929EXPORT_SYMBOL(subsystem_unregister); 909EXPORT_SYMBOL(subsystem_unregister);
930EXPORT_SYMBOL(subsys_create_file);