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>
This commit is contained in:
Greg Kroah-Hartman
2007-11-01 09:29:06 -06:00
parent b0d78e5549
commit 881c6cfd7c
4 changed files with 11 additions and 13 deletions

View File

@@ -25,8 +25,6 @@
#include "base.h"
extern struct kset devices_subsys;
#define to_sysdev(k) container_of(k, struct sys_device, kobj)
#define to_sysdev_attr(a) container_of(a, struct sysdev_attribute, attr)
@@ -459,7 +457,7 @@ int sysdev_resume(void)
int __init system_bus_init(void)
{
system_subsys.kobj.parent = &devices_subsys.kobj;
system_subsys.kobj.parent = &devices_kset->kobj;
return subsystem_register(&system_subsys);
}