Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75748
b: refs/heads/master
c: 59a5483
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent c304d35 commit 1d55f6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: bd35b93d8049ab47b5bfaf6b10ba39badf21d1c3
refs/heads/master: 59a548338ac6c9d7549c54278d0f724088585928
11 changes: 7 additions & 4 deletions trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static struct kset_uevent_ops bus_uevent_ops = {
.filter = bus_uevent_filter,
};

static decl_subsys(bus, &bus_uevent_ops);
static struct kset *bus_kset;


#ifdef CONFIG_HOTPLUG
Expand Down Expand Up @@ -767,7 +767,7 @@ EXPORT_SYMBOL_GPL(device_reprobe);
#if 0
struct bus_type * find_bus(char * name)
{
struct kobject * k = kset_find_obj(&bus_subsys.kset, name);
struct kobject * k = kset_find_obj(bus_kset, name);
return k ? to_bus(k) : NULL;
}
#endif /* 0 */
Expand Down Expand Up @@ -851,7 +851,7 @@ int bus_register(struct bus_type * bus)
if (retval)
goto out;

bus->subsys.kobj.kset = &bus_subsys;
bus->subsys.kobj.kset = bus_kset;
bus->subsys.kobj.ktype = &bus_ktype;

retval = subsystem_register(&bus->subsys);
Expand Down Expand Up @@ -935,7 +935,10 @@ EXPORT_SYMBOL_GPL(bus_unregister_notifier);

int __init buses_init(void)
{
return subsystem_register(&bus_subsys);
bus_kset = kset_create_and_add("bus", &bus_uevent_ops, NULL);
if (!bus_kset)
return -ENOMEM;
return 0;
}


Expand Down

0 comments on commit 1d55f6e

Please sign in to comment.