fix rwlock usage example
authorLucas Correia Villa Real <lucasvr@gobolinux.org>
Tue, 21 Mar 2006 23:19:39 +0000 (00:19 +0100)
committerAdrian Bunk <bunk@r063144.stusta.swh.mhn.de>
Tue, 21 Mar 2006 23:19:39 +0000 (00:19 +0100)
This is a trivial patch which fixes a typo on rwlock usage under
Documentation/spinlocks.txt.

Signed-Off-By: Lucas Correia Villa Real <lucasvr@gobolinux.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Documentation/spinlocks.txt

index c2122996631e4d413fffe6be3d1173f827a8649c..a661d684768e99c2cb9737b1e5f85925554f9235 100644 (file)
@@ -9,7 +9,7 @@ removed soon. So for any new code dynamic initialization should be used:
    static int __init xxx_init(void)
    {
        spin_lock_init(&xxx_lock);
-       rw_lock_init(&xxx_rw_lock);
+       rwlock_init(&xxx_rw_lock);
        ...
    }