Skip to content

Commit

Permalink
alpha: Replace deprecated spinlock initialization
Browse files Browse the repository at this point in the history
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Matt Turner <mattst88@gmail.com>
  • Loading branch information
Thomas Gleixner committed Jan 27, 2011
1 parent f97b12c commit 61bb460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/alpha/include/asm/rwsem.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct rw_semaphore {
};

#define __RWSEM_INITIALIZER(name) \
{ RWSEM_UNLOCKED_VALUE, SPIN_LOCK_UNLOCKED, \
{ RWSEM_UNLOCKED_VALUE, __SPIN_LOCK_UNLOCKED((name).wait_lock), \
LIST_HEAD_INIT((name).wait_list) }

#define DECLARE_RWSEM(name) \
Expand Down

0 comments on commit 61bb460

Please sign in to comment.