diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-01 11:29:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:15 -0500 |
commit | 881c6cfd7c5edfe6129006e2404654bfe5911050 (patch) | |
tree | cb8fa388d2b7c833d77e6ac4957310844a4e96af /drivers/base/sys.c | |
parent | b0d78e5549b44b3d64bf8b3ffe95280025ed102e (diff) |
kset: convert /sys/devices to use kset_create
Dynamically create the kset instead of declaring it statically. We also
rename devices_subsys to devices_kset to catch all users of the
variable.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/sys.c')
-rw-r--r-- | drivers/base/sys.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/base/sys.c b/drivers/base/sys.c index 7cf19fc318da..7693c95848e6 100644 --- a/drivers/base/sys.c +++ b/drivers/base/sys.c | |||
@@ -25,8 +25,6 @@ | |||
25 | 25 | ||
26 | #include "base.h" | 26 | #include "base.h" |
27 | 27 | ||
28 | extern struct kset devices_subsys; | ||
29 | |||
30 | #define to_sysdev(k) container_of(k, struct sys_device, kobj) | 28 | #define to_sysdev(k) container_of(k, struct sys_device, kobj) |
31 | #define to_sysdev_attr(a) container_of(a, struct sysdev_attribute, attr) | 29 | #define to_sysdev_attr(a) container_of(a, struct sysdev_attribute, attr) |
32 | 30 | ||
@@ -459,7 +457,7 @@ int sysdev_resume(void) | |||
459 | 457 | ||
460 | int __init system_bus_init(void) | 458 | int __init system_bus_init(void) |
461 | { | 459 | { |
462 | system_subsys.kobj.parent = &devices_subsys.kobj; | 460 | system_subsys.kobj.parent = &devices_kset->kobj; |
463 | return subsystem_register(&system_subsys); | 461 | return subsystem_register(&system_subsys); |
464 | } | 462 | } |
465 | 463 | ||