summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-01-23 15:19:12 +0100
committerThomas Gleixner <tglx@linutronix.de>2011-01-27 12:30:37 +0100
commit24774fbdeab8f6ac05a19e81bd645b0f7e5d2bb7 (patch)
tree0aee50123069585d00ff07348ef74aa6358f47ae /arch/sparc
parentmips: Replace deprecated spinlock initialization (diff)
downloadlinux-24774fbdeab8f6ac05a19e81bd645b0f7e5d2bb7.tar.xz
linux-24774fbdeab8f6ac05a19e81bd645b0f7e5d2bb7.zip
sparc: Replace deprecated spinlock initialization
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>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/lib/atomic32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c
index cbddeb38ffda..d3c7a12ad879 100644
--- a/arch/sparc/lib/atomic32.c
+++ b/arch/sparc/lib/atomic32.c
@@ -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 */