aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/power
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-11-01 11:29:06 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:15 -0500
commit881c6cfd7c5edfe6129006e2404654bfe5911050 (patch)
treecb8fa388d2b7c833d77e6ac4957310844a4e96af /drivers/base/power
parentb0d78e5549b44b3d64bf8b3ffe95280025ed102e (diff)
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/power')
-rw-r--r--drivers/base/power/shutdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/shutdown.c b/drivers/base/power/shutdown.c
index 56e8eaaac012..f51cbc1d402c 100644
--- a/drivers/base/power/shutdown.c
+++ b/drivers/base/power/shutdown.c
@@ -34,7 +34,7 @@ void device_shutdown(void)
34{ 34{
35 struct device * dev, *devn; 35 struct device * dev, *devn;
36 36
37 list_for_each_entry_safe_reverse(dev, devn, &devices_subsys.list, 37 list_for_each_entry_safe_reverse(dev, devn, &devices_kset->list,
38 kobj.entry) { 38 kobj.entry) {
39 if (dev->bus && dev->bus->shutdown) { 39 if (dev->bus && dev->bus->shutdown) {
40 dev_dbg(dev, "shutdown\n"); 40 dev_dbg(dev, "shutdown\n");