Commit 399408276df23f467dd67ed5b73b81275a753667
1 parent
332824b835
Exists in
master
and in
4 other branches
Blackfin: BF54x: add ifdef protection to gpio header
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Showing 1 changed file with 10 additions and 0 deletions Side-by-side Diff
arch/blackfin/mach-bf548/include/mach/gpio.h
... | ... | @@ -3,6 +3,10 @@ |
3 | 3 | * Licensed under the GPL-2 or later. |
4 | 4 | */ |
5 | 5 | |
6 | + | |
7 | +#ifndef _MACH_GPIO_H_ | |
8 | +#define _MACH_GPIO_H_ | |
9 | + | |
6 | 10 | #define GPIO_PA0 0 |
7 | 11 | #define GPIO_PA1 1 |
8 | 12 | #define GPIO_PA2 2 |
... | ... | @@ -166,6 +170,8 @@ |
166 | 170 | |
167 | 171 | #define MAX_BLACKFIN_GPIOS 160 |
168 | 172 | |
173 | +#ifndef __ASSEMBLY__ | |
174 | + | |
169 | 175 | struct gpio_port_t { |
170 | 176 | unsigned short port_fer; |
171 | 177 | unsigned short dummy1; |
... | ... | @@ -191,4 +197,8 @@ |
191 | 197 | unsigned short inen; |
192 | 198 | unsigned int mux; |
193 | 199 | }; |
200 | + | |
201 | +#endif | |
202 | + | |
203 | +#endif /* _MACH_GPIO_H_ */ |