]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
kthread: Replace deprecated spinlock initialization
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Jan 2011 14:24:55 +0000 (15:24 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jan 2011 11:30:37 +0000 (12:30 +0100)
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/kthread.h

index ce0775aa64c376b8980a6af70ef59f14d19f1ba0..7ff16f7d3ed41530a9c67cdaa2bc5bbf2c609f87 100644 (file)
@@ -64,7 +64,7 @@ struct kthread_work {
 };
 
 #define KTHREAD_WORKER_INIT(worker)    {                               \
-       .lock = SPIN_LOCK_UNLOCKED,                                     \
+       .lock = __SPIN_LOCK_UNLOCKED((worker).lock),                    \
        .work_list = LIST_HEAD_INIT((worker).work_list),                \
        }