aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-04-09 11:52:31 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 13:57:31 -0400
commit4628803062d93dadc6ba8e801fd075526904a38c (patch)
treedf7081e3f18899c35873b647a582be655b1a5ed1 /lib/kobject.c
parent2f66858a0ae48faf4c8dc19042f3aff52208dc57 (diff)
kobject core: remove rwsem from struct subsystem
It isn't used at all by the driver core anymore, and the few usages of it within the kernel have now all been fixed as most of them were using it incorrectly. So remove it. Now the whole struct subsys can be removed from the system, but that's for a later patch... Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/kobject.c')
-rw-r--r--lib/kobject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index eb251aae78dd..2882aff6f3d1 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -652,7 +652,6 @@ struct kobject * kset_find_obj(struct kset * kset, const char * name)
652 652
653void subsystem_init(struct subsystem * s) 653void subsystem_init(struct subsystem * s)
654{ 654{
655 init_rwsem(&s->rwsem);
656 kset_init(&s->kset); 655 kset_init(&s->kset);
657} 656}
658 657
@@ -661,8 +660,7 @@ void subsystem_init(struct subsystem * s)
661 * @s: the subsystem we're registering. 660 * @s: the subsystem we're registering.
662 * 661 *
663 * Once we register the subsystem, we want to make sure that 662 * Once we register the subsystem, we want to make sure that
664 * the kset points back to this subsystem for correct usage of 663 * the kset points back to this subsystem.
665 * the rwsem.
666 */ 664 */
667 665
668int subsystem_register(struct subsystem * s) 666int subsystem_register(struct subsystem * s)