diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-01 13:39:50 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:16 -0500 |
commit | 039a5dcd2fc45188a2d522df630db4f7ef903a0f (patch) | |
tree | dbadc8ef13f00f90acf3c9caad8a3834a34f6ce9 /kernel/power/disk.c | |
parent | 7405c1e15edfe43b137bfbc5882f1af34d6d414d (diff) |
kset: convert /sys/power to use kset_create
Dynamically create the kset instead of declaring it statically. We also
rename power_subsys to power_kset to catch all users of the variable and
we properly export it so that people don't have to guess that it really
is present in the system.
The pseries code is wierd, why is it createing /sys/power if CONFIG_PM
is disabled? Oh well, stupid big boxes ignoring config options...
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/power/disk.c')
-rw-r--r-- | kernel/power/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/disk.c b/kernel/power/disk.c index 05b64790fe83..c3f0e61365dd 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c | |||
@@ -708,7 +708,7 @@ static struct attribute_group attr_group = { | |||
708 | 708 | ||
709 | static int __init pm_disk_init(void) | 709 | static int __init pm_disk_init(void) |
710 | { | 710 | { |
711 | return sysfs_create_group(&power_subsys.kobj, &attr_group); | 711 | return sysfs_create_group(&power_kset->kobj, &attr_group); |
712 | } | 712 | } |
713 | 713 | ||
714 | core_initcall(pm_disk_init); | 714 | core_initcall(pm_disk_init); |