summaryrefslogtreecommitdiffstats
path: root/drivers/base/sys.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2007-11-01 16:29:06 +0100
committerGreg Kroah-Hartman2008-01-25 05:40:15 +0100
commit881c6cfd7c5edfe6129006e2404654bfe5911050 (patch)
treecb8fa388d2b7c833d77e6ac4957310844a4e96af /drivers/base/sys.c
parentkset: convert drivers/base/firmware.c to use kset_create (diff)
downloadkernel-qcow2-linux-881c6cfd7c5edfe6129006e2404654bfe5911050.tar.gz
kernel-qcow2-linux-881c6cfd7c5edfe6129006e2404654bfe5911050.tar.xz
kernel-qcow2-linux-881c6cfd7c5edfe6129006e2404654bfe5911050.zip
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.c4
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 @@
#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);
}