summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2011-08-25 08:04:40 +0100
committerAndy Green <andy.green@linaro.org>2011-08-25 08:04:40 +0100
commit0fa8cb8aa5ea6b75ef26e3fd26a08a959023326d (patch)
treede07f323055621ae55b0ee472e8707b127914cb7
parent679ec70e9d1b99f5a93847b2ce44a4dcf4d30573 (diff)
sgx fix SPIN_LOCK_UNLOCKED
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/gpu/pvr/pvr_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/pvr/pvr_debug.c b/drivers/gpu/pvr/pvr_debug.c
index 734aebb2cc1..e77729f84fe 100644
--- a/drivers/gpu/pvr/pvr_debug.c
+++ b/drivers/gpu/pvr/pvr_debug.c
@@ -68,7 +68,7 @@ static IMG_CHAR gszBufferIRQ[PVR_MAX_MSG_LEN + 1];
static PVRSRV_LINUX_MUTEX gsDebugMutexNonIRQ;
-static spinlock_t gsDebugLockIRQ = SPIN_LOCK_UNLOCKED;
+static spinlock_t gsDebugLockIRQ = __SPIN_LOCK_UNLOCKED(gsDebugLockIRQ);
#if !defined (USE_SPIN_LOCK)
#define USE_SPIN_LOCK (in_interrupt() || !preemptible())