aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/spinlock_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh/spinlock_types.h')
-rw-r--r--include/asm-sh/spinlock_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-sh/spinlock_types.h b/include/asm-sh/spinlock_types.h
index 8c41b6c3aac8..5c58134f2c4e 100644
--- a/include/asm-sh/spinlock_types.h
+++ b/include/asm-sh/spinlock_types.h
@@ -9,7 +9,9 @@ typedef struct {
volatile unsigned long lock;
} raw_spinlock_t;
-#define __SPIN_LOCK_UNLOCKED { 0 }
+#define __RAW_SPIN_LOCK_UNLOCKED { 1 }
+
+#include <asm/atomic.h>
typedef struct {
raw_spinlock_t lock;