Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67942
b: refs/heads/master
c: 1ef4cfa
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Oct 12, 2007
1 parent efbe25d commit 886784e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e9d930d167f8957a12a80515f3c417a98296378
refs/heads/master: 1ef4cfac01fb5e98900f5bdb2a722aac1daff11b
2 changes: 1 addition & 1 deletion trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ EXPORT_SYMBOL_GPL(device_reprobe);

struct bus_type *get_bus(struct bus_type *bus)
{
return bus ? container_of(subsys_get(&bus->subsys),
return bus ? container_of(kset_get(&bus->subsys),
struct bus_type, subsys) : NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void class_remove_file(struct class * cls, const struct class_attribute * attr)
static struct class *class_get(struct class *cls)
{
if (cls)
return container_of(subsys_get(&cls->subsys), struct class, subsys);
return container_of(kset_get(&cls->subsys), struct class, subsys);
return NULL;
}

Expand Down
7 changes: 0 additions & 7 deletions trunk/include/linux/kobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,6 @@ extern void subsystem_init(struct kset *);
extern int __must_check subsystem_register(struct kset *);
extern void subsystem_unregister(struct kset *);

static inline struct kset *subsys_get(struct kset *s)
{
if (s)
return kset_get(s);
return NULL;
}

struct subsys_attribute {
struct attribute attr;
ssize_t (*show)(struct kset *, char *);
Expand Down
2 changes: 1 addition & 1 deletion trunk/lib/kobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ int subsys_create_file(struct kset *s, struct subsys_attribute *a)
if (!s || !a)
return -EINVAL;

if (subsys_get(s)) {
if (kset_get(s)) {
error = sysfs_create_file(&s->kobj, &a->attr);
kset_put(s);
}
Expand Down

0 comments on commit 886784e

Please sign in to comment.