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 /arch/arm | |
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 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap1/pm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index 3bf01e28df33..402113c72981 100644 --- a/arch/arm/mach-omap1/pm.c +++ b/arch/arm/mach-omap1/pm.c | |||
@@ -97,7 +97,6 @@ static struct subsys_attribute sleep_while_idle_attr = { | |||
97 | .store = omap_pm_sleep_while_idle_store, | 97 | .store = omap_pm_sleep_while_idle_store, |
98 | }; | 98 | }; |
99 | 99 | ||
100 | extern struct kset power_subsys; | ||
101 | static void (*omap_sram_idle)(void) = NULL; | 100 | static void (*omap_sram_idle)(void) = NULL; |
102 | static void (*omap_sram_suspend)(unsigned long r0, unsigned long r1) = NULL; | 101 | static void (*omap_sram_suspend)(unsigned long r0, unsigned long r1) = NULL; |
103 | 102 | ||
@@ -726,7 +725,7 @@ static int __init omap_pm_init(void) | |||
726 | omap_pm_init_proc(); | 725 | omap_pm_init_proc(); |
727 | #endif | 726 | #endif |
728 | 727 | ||
729 | error = subsys_create_file(&power_subsys, &sleep_while_idle_attr); | 728 | error = subsys_create_file(power_kset, &sleep_while_idle_attr); |
730 | if (error) | 729 | if (error) |
731 | printk(KERN_ERR "subsys_create_file failed: %d\n", error); | 730 | printk(KERN_ERR "subsys_create_file failed: %d\n", error); |
732 | 731 | ||