mips: Replace deprecated spinlock initialization
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Jan 2011 14:16:35 +0000 (15:16 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jan 2011 11:30:36 +0000 (12:30 +0100)
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vpe.c

index 6a1fdfef8fded5763a457ec026467b356717fc78..ab52b7cf3b6bcc007cfda63bce5c028be665bbfa 100644 (file)
@@ -148,9 +148,9 @@ struct {
        spinlock_t tc_list_lock;
        struct list_head tc_list;       /* Thread contexts */
 } vpecontrol = {
-       .vpe_list_lock  = SPIN_LOCK_UNLOCKED,
+       .vpe_list_lock  = __SPIN_LOCK_UNLOCKED(vpe_list_lock),
        .vpe_list       = LIST_HEAD_INIT(vpecontrol.vpe_list),
-       .tc_list_lock   = SPIN_LOCK_UNLOCKED,
+       .tc_list_lock   = __SPIN_LOCK_UNLOCKED(tc_list_lock),
        .tc_list        = LIST_HEAD_INIT(vpecontrol.tc_list)
 };