summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-11-01 21:31:26 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-25 05:40:16 +0100
commit3d8995963dfec66ef6270e729bf75903e9043f9d (patch)
tree3abf600f400fb1bbc26f0be4f43af6cb22d24ce4 /include
parentkset: convert /sys/power to use kset_create (diff)
downloadlinux-3d8995963dfec66ef6270e729bf75903e9043f9d.tar.xz
linux-3d8995963dfec66ef6270e729bf75903e9043f9d.zip
kset: convert struct bus_device->devices to use kset_create
Dynamically create the kset instead of declaring it statically. Having 3 static kobjects in one structure is not only foolish, but ripe for nasty race conditions if handled improperly. We also rename the field to catch any potential users of it (not that there should be outside of the driver core...) Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index dbbbe89e7267..82c277771376 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -55,7 +55,7 @@ struct bus_type {
struct kset subsys;
struct kset drivers;
- struct kset devices;
+ struct kset *devices_kset;
struct klist klist_devices;
struct klist klist_drivers;