diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-01-08 10:02:30 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-01-08 10:45:23 -0500 |
commit | 3cdd54417d0f821825a353f7273d356399112f56 (patch) | |
tree | b19c992151e2dec4626761302b27ada179227f66 /arch/arm/plat-mxc/include/mach | |
parent | 4631166124d928d3e9372a57b1477ce6335332c5 (diff) |
imx: properly protect mach/mx{1,[25][157x]}.h from multiple inclusion
Some headers have used (now) wrong names or havn't had protection at
all. This is needed before adding static inline functions to the
headers.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Magnus Lilja <lilja.magnus@gmail.com>
Cc: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Daniel Mack <daniel@caiaq.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx1.h | 6 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx21.h | 6 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx25.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx27.h | 6 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx2x.h | 6 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx31.h | 5 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx35.h | 4 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx3x.h | 6 |
8 files changed, 25 insertions, 16 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mx1.h b/arch/arm/plat-mxc/include/mach/mx1.h index 1b2890a5c45..b652a9c2586 100644 --- a/arch/arm/plat-mxc/include/mach/mx1.h +++ b/arch/arm/plat-mxc/include/mach/mx1.h | |||
@@ -9,8 +9,8 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef __ASM_ARCH_MXC_MX1_H__ | 12 | #ifndef __MACH_MX1_H__ |
13 | #define __ASM_ARCH_MXC_MX1_H__ | 13 | #define __MACH_MX1_H__ |
14 | 14 | ||
15 | #include <mach/vmalloc.h> | 15 | #include <mach/vmalloc.h> |
16 | 16 | ||
@@ -161,4 +161,4 @@ | |||
161 | #define DMA_REQ_UART1_T 30 | 161 | #define DMA_REQ_UART1_T 30 |
162 | #define DMA_REQ_UART1_R 31 | 162 | #define DMA_REQ_UART1_R 31 |
163 | 163 | ||
164 | #endif /* __ASM_ARCH_MXC_MX1_H__ */ | 164 | #endif /* ifndef __MACH_MX1_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx21.h b/arch/arm/plat-mxc/include/mach/mx21.h index 5e2f16e5999..ed98b9c9f38 100644 --- a/arch/arm/plat-mxc/include/mach/mx21.h +++ b/arch/arm/plat-mxc/include/mach/mx21.h | |||
@@ -22,8 +22,8 @@ | |||
22 | * MA 02110-1301, USA. | 22 | * MA 02110-1301, USA. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef __ASM_ARCH_MXC_MX21_H__ | 25 | #ifndef __MACH_MX21_H__ |
26 | #define __ASM_ARCH_MXC_MX21_H__ | 26 | #define __MACH_MX21_H__ |
27 | 27 | ||
28 | #define MX21_AIPI_BASE_ADDR 0x10000000 | 28 | #define MX21_AIPI_BASE_ADDR 0x10000000 |
29 | #define MX21_AIPI_BASE_ADDR_VIRT 0xf4000000 | 29 | #define MX21_AIPI_BASE_ADDR_VIRT 0xf4000000 |
@@ -219,4 +219,4 @@ | |||
219 | #define DMA_REQ_BMI_RX MX21_DMA_REQ_BMI_RX | 219 | #define DMA_REQ_BMI_RX MX21_DMA_REQ_BMI_RX |
220 | #endif | 220 | #endif |
221 | 221 | ||
222 | #endif /* __ASM_ARCH_MXC_MX21_H__ */ | 222 | #endif /* ifndef __MACH_MX21_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx25.h b/arch/arm/plat-mxc/include/mach/mx25.h index 7a8982dfd92..18eb44c15ea 100644 --- a/arch/arm/plat-mxc/include/mach/mx25.h +++ b/arch/arm/plat-mxc/include/mach/mx25.h | |||
@@ -34,4 +34,4 @@ | |||
34 | 34 | ||
35 | #define MX25_INT_FEC 57 | 35 | #define MX25_INT_FEC 57 |
36 | 36 | ||
37 | #endif /* __MACH_MX25_H__ */ | 37 | #endif /* ifndef __MACH_MX25_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx27.h b/arch/arm/plat-mxc/include/mach/mx27.h index 62746c0cd5c..832b5804dcb 100644 --- a/arch/arm/plat-mxc/include/mach/mx27.h +++ b/arch/arm/plat-mxc/include/mach/mx27.h | |||
@@ -21,8 +21,8 @@ | |||
21 | * MA 02110-1301, USA. | 21 | * MA 02110-1301, USA. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef __ASM_ARCH_MXC_MX27_H__ | 24 | #ifndef __MACH_MX27_H__ |
25 | #define __ASM_ARCH_MXC_MX27_H__ | 25 | #define __MACH_MX27_H__ |
26 | 26 | ||
27 | #define MX27_AIPI_BASE_ADDR 0x10000000 | 27 | #define MX27_AIPI_BASE_ADDR 0x10000000 |
28 | #define MX27_AIPI_BASE_ADDR_VIRT 0xf4000000 | 28 | #define MX27_AIPI_BASE_ADDR_VIRT 0xf4000000 |
@@ -300,4 +300,4 @@ extern int mx27_revision(void); | |||
300 | #define DMA_REQ_NFC MX27_DMA_REQ_NFC | 300 | #define DMA_REQ_NFC MX27_DMA_REQ_NFC |
301 | #endif | 301 | #endif |
302 | 302 | ||
303 | #endif /* __ASM_ARCH_MXC_MX27_H__ */ | 303 | #endif /* ifndef __MACH_MX27_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx2x.h b/arch/arm/plat-mxc/include/mach/mx2x.h index 396470e8d93..afb895a0b5b 100644 --- a/arch/arm/plat-mxc/include/mach/mx2x.h +++ b/arch/arm/plat-mxc/include/mach/mx2x.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * MA 02110-1301, USA. | 20 | * MA 02110-1301, USA. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef __ASM_ARCH_MXC_MX2x_H__ | 23 | #ifndef __MACH_MX2x_H__ |
24 | #define __ASM_ARCH_MXC_MX2x_H__ | 24 | #define __MACH_MX2x_H__ |
25 | 25 | ||
26 | /* The following addresses are common between i.MX21 and i.MX27 */ | 26 | /* The following addresses are common between i.MX21 and i.MX27 */ |
27 | 27 | ||
@@ -290,4 +290,4 @@ | |||
290 | #define DMA_REQ_CSI_RX MX2x_DMA_REQ_CSI_RX | 290 | #define DMA_REQ_CSI_RX MX2x_DMA_REQ_CSI_RX |
291 | #endif | 291 | #endif |
292 | 292 | ||
293 | #endif /* __ASM_ARCH_MXC_MX2x_H__ */ | 293 | #endif /* ifndef __MACH_MX2x_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx31.h b/arch/arm/plat-mxc/include/mach/mx31.h index 53da4c5976a..62d26da10c6 100644 --- a/arch/arm/plat-mxc/include/mach/mx31.h +++ b/arch/arm/plat-mxc/include/mach/mx31.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef __MACH_MX31_H__ | ||
2 | #define __MACH_MX31_H__ | ||
3 | |||
1 | /* | 4 | /* |
2 | * IRAM | 5 | * IRAM |
3 | */ | 6 | */ |
@@ -225,3 +228,5 @@ | |||
225 | #define MXC_INT_CCM MX31_INT_CCM | 228 | #define MXC_INT_CCM MX31_INT_CCM |
226 | #define MXC_INT_PCMCIA MX31_INT_PCMCIA | 229 | #define MXC_INT_PCMCIA MX31_INT_PCMCIA |
227 | #endif | 230 | #endif |
231 | |||
232 | #endif /* ifndef __MACH_MX31_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/mx35.h b/arch/arm/plat-mxc/include/mach/mx35.h index ff2d2f0bfc9..526a55842ae 100644 --- a/arch/arm/plat-mxc/include/mach/mx35.h +++ b/arch/arm/plat-mxc/include/mach/mx35.h | |||
@@ -1,3 +1,5 @@ | |||
1 | #ifndef __MACH_MX35_H__ | ||
2 | #define __MACH_MX35_H__ | ||
1 | /* | 3 | /* |
2 | * IRAM | 4 | * IRAM |
3 | */ | 5 | */ |
@@ -204,3 +206,5 @@ | |||
204 | #define MXC_INT_SPDIF MX35_INT_SPDIF | 206 | #define MXC_INT_SPDIF MX35_INT_SPDIF |
205 | #define MXC_INT_FEC MX35_INT_FEC | 207 | #define MXC_INT_FEC MX35_INT_FEC |
206 | #endif | 208 | #endif |
209 | |||
210 | #endif /* ifndef __MACH_MX35_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/mx3x.h b/arch/arm/plat-mxc/include/mach/mx3x.h index 5ae0b002d79..7a356de385f 100644 --- a/arch/arm/plat-mxc/include/mach/mx3x.h +++ b/arch/arm/plat-mxc/include/mach/mx3x.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __ASM_ARCH_MXC_MX31_H__ | 11 | #ifndef __MACH_MX3x_H__ |
12 | #define __ASM_ARCH_MXC_MX31_H__ | 12 | #define __MACH_MX3x_H__ |
13 | 13 | ||
14 | /* | 14 | /* |
15 | * MX31 memory map: | 15 | * MX31 memory map: |
@@ -404,4 +404,4 @@ static inline int mx31_revision(void) | |||
404 | #define SYSTEM_REV_NUM MX3x_SYSTEM_REV_NUM | 404 | #define SYSTEM_REV_NUM MX3x_SYSTEM_REV_NUM |
405 | #endif | 405 | #endif |
406 | 406 | ||
407 | #endif /* __ASM_ARCH_MXC_MX31_H__ */ | 407 | #endif /* ifndef __MACH_MX3x_H__ */ |