summaryrefslogtreecommitdiff
path: root/arch/avr32/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/avr32/include/asm/atomic.h')
-rw-r--r--arch/avr32/include/asm/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/include/asm/atomic.h b/arch/avr32/include/asm/atomic.h
index 7ef3862a73d0..318815107748 100644
--- a/arch/avr32/include/asm/atomic.h
+++ b/arch/avr32/include/asm/atomic.h
@@ -14,9 +14,9 @@
#ifndef __ASM_AVR32_ATOMIC_H
#define __ASM_AVR32_ATOMIC_H
+#include <linux/types.h>
#include <asm/system.h>
-typedef struct { volatile int counter; } atomic_t;
#define ATOMIC_INIT(i) { (i) }
#define atomic_read(v) ((v)->counter)