Skip to content

Commit

Permalink
sparc: 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>
Acked-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Gleixner committed Jan 27, 2011
1 parent 7424cdf commit 24774fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/lib/atomic32.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define ATOMIC_HASH(a) (&__atomic_hash[(((unsigned long)a)>>8) & (ATOMIC_HASH_SIZE-1)])

spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] = {
[0 ... (ATOMIC_HASH_SIZE-1)] = SPIN_LOCK_UNLOCKED
[0 ... (ATOMIC_HASH_SIZE-1)] = __SPIN_LOCK_UNLOCKED(__atomic_hash)
};

#else /* SMP */
Expand Down

0 comments on commit 24774fb

Please sign in to comment.