diff options
author | Dave Young <hidave.darkstar@gmail.com> | 2008-05-28 12:28:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 00:54:52 -0400 |
commit | f75b1c60fc1e53c4004a79ea0be071aa3318cdcc (patch) | |
tree | 75728a6393f2e7568cd17ffd749fd3c4a4e1d95f /drivers/base/base.h | |
parent | d2a3b9146e4f40c2e872d7567c996ef95083d802 (diff) |
class: change internal semaphore to a mutex
Now that the lockdep infrastructure in the class core is in place, we
should be able to properly change the internal class semaphore to be a
mutex.
David wrote the original patch, and Greg fixed it up to apply properly
due to all of the recent changes in this area.
From: Dave Young <hidave.darkstar@gmail.com>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index c035dc23266a..31dc0cd84afa 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h | |||
@@ -44,7 +44,7 @@ struct driver_private { | |||
44 | * @class_devices - list of devices associated with this class | 44 | * @class_devices - list of devices associated with this class |
45 | * @class_interfaces - list of class_interfaces associated with this class | 45 | * @class_interfaces - list of class_interfaces associated with this class |
46 | * @class_dirs - "glue" directory for virtual devices associated with this class | 46 | * @class_dirs - "glue" directory for virtual devices associated with this class |
47 | * @class_sem - semaphore to protect the children, devices, and interfaces lists. | 47 | * @class_mutex - mutex to protect the children, devices, and interfaces lists. |
48 | * @class - pointer back to the struct class that this structure is associated | 48 | * @class - pointer back to the struct class that this structure is associated |
49 | * with. | 49 | * with. |
50 | * | 50 | * |
@@ -57,7 +57,7 @@ struct class_private { | |||
57 | struct list_head class_devices; | 57 | struct list_head class_devices; |
58 | struct list_head class_interfaces; | 58 | struct list_head class_interfaces; |
59 | struct kset class_dirs; | 59 | struct kset class_dirs; |
60 | struct semaphore class_sem; | 60 | struct mutex class_mutex; |
61 | struct class *class; | 61 | struct class *class; |
62 | }; | 62 | }; |
63 | #define to_class(obj) \ | 63 | #define to_class(obj) \ |