aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-11-27 14:28:26 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:25 -0500
commitd76e15fb20eeb7632ef38876a884fe3508b2c01d (patch)
tree5f3d63e70d8ac2365ee0c3f6b0489c8377ec1cd0 /arch/powerpc/platforms
parent37b0c020343080241984d978981d6caf877b278a (diff)
driver core: make /sys/power a kobject
/sys/power should not be a kset, that's overkill. This patch renames it to power_kset and fixes up all usages of it in the tree. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/pseries/power.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/pseries/power.c b/arch/powerpc/platforms/pseries/power.c
index 90706cf840fd..e95fc1594c84 100644
--- a/arch/powerpc/platforms/pseries/power.c
+++ b/arch/powerpc/platforms/pseries/power.c
@@ -53,7 +53,7 @@ static struct kobj_attribute auto_poweron_attr =
53 __ATTR(auto_poweron, 0644, auto_poweron_show, auto_poweron_store); 53 __ATTR(auto_poweron, 0644, auto_poweron_show, auto_poweron_store);
54 54
55#ifndef CONFIG_PM 55#ifndef CONFIG_PM
56struct kset *power_kset; 56struct kobject *power_kobj;
57 57
58static struct attribute *g[] = { 58static struct attribute *g[] = {
59 &auto_poweron_attr.attr, 59 &auto_poweron_attr.attr,
@@ -66,16 +66,16 @@ static struct attribute_group attr_group = {
66 66
67static int __init pm_init(void) 67static int __init pm_init(void)
68{ 68{
69 power_kset = kset_create_and_add("power", NULL, NULL); 69 power_kobj = kobject_create_and_add("power", NULL);
70 if (!power_kset) 70 if (!power_kobj)
71 return -ENOMEM; 71 return -ENOMEM;
72 return sysfs_create_group(&power_kset->kobj, &attr_group); 72 return sysfs_create_group(power_kobj, &attr_group);
73} 73}
74core_initcall(pm_init); 74core_initcall(pm_init);
75#else 75#else
76static int __init apo_pm_init(void) 76static int __init apo_pm_init(void)
77{ 77{
78 return (sysfs_create_file(&power_kset->kobj, &auto_poweron_attr)); 78 return (sysfs_create_file(power_kobj, &auto_poweron_attr));
79} 79}
80__initcall(apo_pm_init); 80__initcall(apo_pm_init);
81#endif 81#endif