summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-06-02 05:37:10 +0000
committerMike Frysinger <vapier@gentoo.org>2010-08-06 12:55:48 -0400
commit399408276df23f467dd67ed5b73b81275a753667 (patch)
tree3c86c0086826a64ec1d1ce067cbdc62174e26461
parent332824b8353be3606a7d0bef2451fc85e803cab1 (diff)
downloadlinux-399408276df23f467dd67ed5b73b81275a753667.tar.gz
linux-399408276df23f467dd67ed5b73b81275a753667.tar.bz2
linux-399408276df23f467dd67ed5b73b81275a753667.zip
Blackfin: BF54x: add ifdef protection to gpio header
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--arch/blackfin/mach-bf548/include/mach/gpio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/include/mach/gpio.h b/arch/blackfin/mach-bf548/include/mach/gpio.h
index 850e39d193e3..28037e331964 100644
--- a/arch/blackfin/mach-bf548/include/mach/gpio.h
+++ b/arch/blackfin/mach-bf548/include/mach/gpio.h
@@ -3,6 +3,10 @@
* Licensed under the GPL-2 or later.
*/
+
+#ifndef _MACH_GPIO_H_
+#define _MACH_GPIO_H_
+
#define GPIO_PA0 0
#define GPIO_PA1 1
#define GPIO_PA2 2
@@ -166,6 +170,8 @@
#define MAX_BLACKFIN_GPIOS 160
+#ifndef __ASSEMBLY__
+
struct gpio_port_t {
unsigned short port_fer;
unsigned short dummy1;
@@ -191,3 +197,7 @@ struct gpio_port_s {
unsigned short inen;
unsigned int mux;
};
+
+#endif
+
+#endif /* _MACH_GPIO_H_ */