Loading drivers/base/bus.c +1 −1 Original line number Diff line number Diff line Loading @@ -734,7 +734,7 @@ struct bus_type *get_bus(struct bus_type *bus) void put_bus(struct bus_type * bus) { subsys_put(&bus->subsys); kset_put(&bus->subsys); } Loading drivers/base/class.c +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ static struct class *class_get(struct class *cls) static void class_put(struct class * cls) { if (cls) subsys_put(&cls->subsys); kset_put(&cls->subsys); } Loading include/linux/kobject.h +0 −5 Original line number Diff line number Diff line Loading @@ -238,11 +238,6 @@ static inline struct kset *subsys_get(struct kset *s) return NULL; } static inline void subsys_put(struct kset *s) { kset_put(s); } struct subsys_attribute { struct attribute attr; ssize_t (*show)(struct kset *, char *); Loading lib/kobject.c +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
drivers/base/bus.c +1 −1 Original line number Diff line number Diff line Loading @@ -734,7 +734,7 @@ struct bus_type *get_bus(struct bus_type *bus) void put_bus(struct bus_type * bus) { subsys_put(&bus->subsys); kset_put(&bus->subsys); } Loading
drivers/base/class.c +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ static struct class *class_get(struct class *cls) static void class_put(struct class * cls) { if (cls) subsys_put(&cls->subsys); kset_put(&cls->subsys); } Loading
include/linux/kobject.h +0 −5 Original line number Diff line number Diff line Loading @@ -238,11 +238,6 @@ static inline struct kset *subsys_get(struct kset *s) return NULL; } static inline void subsys_put(struct kset *s) { kset_put(s); } struct subsys_attribute { struct attribute attr; ssize_t (*show)(struct kset *, char *); Loading
lib/kobject.c +1 −1 Original line number Diff line number Diff line Loading @@ -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