]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
um: Replace deprecated spinlock initialization
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Jan 2011 14:21:25 +0000 (15:21 +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>
Cc: Jeff Dike <jdike@addtoit.com>
arch/um/drivers/ubd_kern.c

index ba4a98ba39c0322989f32deaf36f7df990cd61f9..620f5b70957d55c4001a31fc9b9682a2e4feb687 100644 (file)
@@ -185,7 +185,7 @@ struct ubd {
        .no_cow =               0, \
        .shared =               0, \
        .cow =                  DEFAULT_COW, \
-       .lock =                 SPIN_LOCK_UNLOCKED,     \
+       .lock =                 __SPIN_LOCK_UNLOCKED(ubd_devs.lock), \
        .request =              NULL, \
        .start_sg =             0, \
        .end_sg =               0, \