diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-03-27 14:51:41 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@marvell.com> | 2008-03-27 14:51:41 -0400 |
commit | 159ffb3a04f6bc619643af680df406faafd0199d (patch) | |
tree | 45d76928836065a3207c15e5bc2037b186213ace /include/asm-arm | |
parent | d50c60a87a95a42f1bc984150d3eebc77a0b0c14 (diff) |
Orion: general cleanup
Various Orion cleanups:
- Unify GPL license banner format across all files.
- Unify naming of .h double inclusion guard preprocessor macros.
- Unify spelling of "PCIe" (variants seen: PCIE, PCIe, PCI-EX.)
- Various typo fixes.
- Remove __init attributes from prototypes declared in headers.
- Remove trailing comments from #endif statements.
- Mark a couple of locally-used-only structs static.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Reviewed-by: Tzachi Perelstein <tzachi@marvell.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/arch-orion/debug-macro.S | 2 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/hardware.h | 4 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/io.h | 8 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/irqs.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/memory.h | 5 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/orion.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/system.h | 5 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/timex.h | 4 | ||||
-rw-r--r-- | include/asm-arm/arch-orion/uncompress.h | 4 |
9 files changed, 24 insertions, 22 deletions
diff --git a/include/asm-arm/arch-orion/debug-macro.S b/include/asm-arm/arch-orion/debug-macro.S index 2746220f5d85..c847f8c92506 100644 --- a/include/asm-arm/arch-orion/debug-macro.S +++ b/include/asm-arm/arch-orion/debug-macro.S | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/include/asm-arm/arch-orion/debug-macro.S | 2 | * include/asm-arm/arch-orion/debug-macro.S |
3 | * | 3 | * |
4 | * Debugging macro include header | 4 | * Debugging macro include header |
5 | * | 5 | * |
diff --git a/include/asm-arm/arch-orion/hardware.h b/include/asm-arm/arch-orion/hardware.h index 65da374de735..998af6029c7d 100644 --- a/include/asm-arm/arch-orion/hardware.h +++ b/include/asm-arm/arch-orion/hardware.h | |||
@@ -6,8 +6,8 @@ | |||
6 | * published by the Free Software Foundation. | 6 | * published by the Free Software Foundation. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #ifndef __ASM_ARCH_HARDWARE_H__ | 9 | #ifndef __ASM_ARCH_HARDWARE_H |
10 | #define __ASM_ARCH_HARDWARE_H__ | 10 | #define __ASM_ARCH_HARDWARE_H |
11 | 11 | ||
12 | #include "orion.h" | 12 | #include "orion.h" |
13 | 13 | ||
diff --git a/include/asm-arm/arch-orion/io.h b/include/asm-arm/arch-orion/io.h index 486dc04d7643..23820153b61c 100644 --- a/include/asm-arm/arch-orion/io.h +++ b/include/asm-arm/arch-orion/io.h | |||
@@ -3,13 +3,13 @@ | |||
3 | * | 3 | * |
4 | * Tzachi Perelstein <tzachi@marvell.com> | 4 | * Tzachi Perelstein <tzachi@marvell.com> |
5 | * | 5 | * |
6 | * This file is licensed under the terms of the GNU General Public | 6 | * This file is licensed under the terms of the GNU General Public |
7 | * License version 2. This program is licensed "as is" without any | 7 | * License version 2. This program is licensed "as is" without any |
8 | * warranty of any kind, whether express or implied. | 8 | * warranty of any kind, whether express or implied. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __ASM_ARM_ARCH_IO_H | 11 | #ifndef __ASM_ARCH_IO_H |
12 | #define __ASM_ARM_ARCH_IO_H | 12 | #define __ASM_ARCH_IO_H |
13 | 13 | ||
14 | #include "orion.h" | 14 | #include "orion.h" |
15 | 15 | ||
diff --git a/include/asm-arm/arch-orion/irqs.h b/include/asm-arm/arch-orion/irqs.h index eea65ca6076a..70a2420456a3 100644 --- a/include/asm-arm/arch-orion/irqs.h +++ b/include/asm-arm/arch-orion/irqs.h | |||
@@ -10,8 +10,8 @@ | |||
10 | * warranty of any kind, whether express or implied. | 10 | * warranty of any kind, whether express or implied. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #ifndef __ASM_ARCH_IRQS_H__ | 13 | #ifndef __ASM_ARCH_IRQS_H |
14 | #define __ASM_ARCH_IRQS_H__ | 14 | #define __ASM_ARCH_IRQS_H |
15 | 15 | ||
16 | #include "orion.h" /* need GPIO_MAX */ | 16 | #include "orion.h" /* need GPIO_MAX */ |
17 | 17 | ||
@@ -58,4 +58,5 @@ | |||
58 | 58 | ||
59 | #define NR_IRQS (IRQ_ORION_GPIO_START + NR_GPIO_IRQS) | 59 | #define NR_IRQS (IRQ_ORION_GPIO_START + NR_GPIO_IRQS) |
60 | 60 | ||
61 | #endif /* __ASM_ARCH_IRQS_H__ */ | 61 | |
62 | #endif | ||
diff --git a/include/asm-arm/arch-orion/memory.h b/include/asm-arm/arch-orion/memory.h index d954dba87ced..d9300d62a534 100644 --- a/include/asm-arm/arch-orion/memory.h +++ b/include/asm-arm/arch-orion/memory.h | |||
@@ -4,12 +4,13 @@ | |||
4 | * Marvell Orion memory definitions | 4 | * Marvell Orion memory definitions |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef __ASM_ARCH_MMU_H | 7 | #ifndef __ASM_ARCH_MEMORY_H |
8 | #define __ASM_ARCH_MMU_H | 8 | #define __ASM_ARCH_MEMORY_H |
9 | 9 | ||
10 | #define PHYS_OFFSET UL(0x00000000) | 10 | #define PHYS_OFFSET UL(0x00000000) |
11 | 11 | ||
12 | #define __virt_to_bus(x) __virt_to_phys(x) | 12 | #define __virt_to_bus(x) __virt_to_phys(x) |
13 | #define __bus_to_virt(x) __phys_to_virt(x) | 13 | #define __bus_to_virt(x) __phys_to_virt(x) |
14 | 14 | ||
15 | |||
15 | #endif | 16 | #endif |
diff --git a/include/asm-arm/arch-orion/orion.h b/include/asm-arm/arch-orion/orion.h index d0b32c379ae4..01f1299472d1 100644 --- a/include/asm-arm/arch-orion/orion.h +++ b/include/asm-arm/arch-orion/orion.h | |||
@@ -11,8 +11,8 @@ | |||
11 | * warranty of any kind, whether express or implied. | 11 | * warranty of any kind, whether express or implied. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #ifndef __ASM_ARCH_ORION_H__ | 14 | #ifndef __ASM_ARCH_ORION_H |
15 | #define __ASM_ARCH_ORION_H__ | 15 | #define __ASM_ARCH_ORION_H |
16 | 16 | ||
17 | /***************************************************************************** | 17 | /***************************************************************************** |
18 | * Orion Address Maps | 18 | * Orion Address Maps |
@@ -91,6 +91,7 @@ | |||
91 | 91 | ||
92 | #define ORION_BRIDGE_VIRT_BASE (ORION_REGS_VIRT_BASE | 0x20000) | 92 | #define ORION_BRIDGE_VIRT_BASE (ORION_REGS_VIRT_BASE | 0x20000) |
93 | #define ORION_BRIDGE_REG(x) (ORION_BRIDGE_VIRT_BASE | (x)) | 93 | #define ORION_BRIDGE_REG(x) (ORION_BRIDGE_VIRT_BASE | (x)) |
94 | #define TIMER_VIRT_BASE (ORION_BRIDGE_VIRT_BASE | 0x300) | ||
94 | 95 | ||
95 | #define ORION_PCI_VIRT_BASE (ORION_REGS_VIRT_BASE | 0x30000) | 96 | #define ORION_PCI_VIRT_BASE (ORION_REGS_VIRT_BASE | 0x30000) |
96 | #define ORION_PCI_REG(x) (ORION_PCI_VIRT_BASE | (x)) | 97 | #define ORION_PCI_REG(x) (ORION_PCI_VIRT_BASE | (x)) |
@@ -154,7 +155,5 @@ | |||
154 | #define MAIN_IRQ_CAUSE ORION_BRIDGE_REG(0x200) | 155 | #define MAIN_IRQ_CAUSE ORION_BRIDGE_REG(0x200) |
155 | #define MAIN_IRQ_MASK ORION_BRIDGE_REG(0x204) | 156 | #define MAIN_IRQ_MASK ORION_BRIDGE_REG(0x204) |
156 | 157 | ||
157 | #define TIMER_VIRT_BASE (ORION_BRIDGE_VIRT_BASE | 0x300) | ||
158 | |||
159 | 158 | ||
160 | #endif | 159 | #endif |
diff --git a/include/asm-arm/arch-orion/system.h b/include/asm-arm/arch-orion/system.h index 17704c68f90e..653f992bbe60 100644 --- a/include/asm-arm/arch-orion/system.h +++ b/include/asm-arm/arch-orion/system.h | |||
@@ -3,8 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Tzachi Perelstein <tzachi@marvell.com> | 4 | * Tzachi Perelstein <tzachi@marvell.com> |
5 | * | 5 | * |
6 | * This file is licensed under the terms of the GNU General Public | 6 | * This file is licensed under the terms of the GNU General Public |
7 | * License version 2. This program is licensed "as is" without any | 7 | * License version 2. This program is licensed "as is" without any |
8 | * warranty of any kind, whether express or implied. | 8 | * warranty of any kind, whether express or implied. |
9 | */ | 9 | */ |
10 | 10 | ||
@@ -28,4 +28,5 @@ static inline void arch_reset(char mode) | |||
28 | orion_setbits(CPU_SOFT_RESET, 1); | 28 | orion_setbits(CPU_SOFT_RESET, 1); |
29 | } | 29 | } |
30 | 30 | ||
31 | |||
31 | #endif | 32 | #endif |
diff --git a/include/asm-arm/arch-orion/timex.h b/include/asm-arm/arch-orion/timex.h index cc0fc7075ebe..85588d9c22ef 100644 --- a/include/asm-arm/arch-orion/timex.h +++ b/include/asm-arm/arch-orion/timex.h | |||
@@ -3,8 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Tzachi Perelstein <tzachi@marvell.com> | 4 | * Tzachi Perelstein <tzachi@marvell.com> |
5 | * | 5 | * |
6 | * This file is licensed under the terms of the GNU General Public | 6 | * This file is licensed under the terms of the GNU General Public |
7 | * License version 2. This program is licensed "as is" without any | 7 | * License version 2. This program is licensed "as is" without any |
8 | * warranty of any kind, whether express or implied. | 8 | * warranty of any kind, whether express or implied. |
9 | */ | 9 | */ |
10 | 10 | ||
diff --git a/include/asm-arm/arch-orion/uncompress.h b/include/asm-arm/arch-orion/uncompress.h index 59f44039909a..03306cdd51be 100644 --- a/include/asm-arm/arch-orion/uncompress.h +++ b/include/asm-arm/arch-orion/uncompress.h | |||
@@ -3,8 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Tzachi Perelstein <tzachi@marvell.com> | 4 | * Tzachi Perelstein <tzachi@marvell.com> |
5 | * | 5 | * |
6 | * This file is licensed under the terms of the GNU General Public | 6 | * This file is licensed under the terms of the GNU General Public |
7 | * License version 2. This program is licensed "as is" without any | 7 | * License version 2. This program is licensed "as is" without any |
8 | * warranty of any kind, whether express or implied. | 8 | * warranty of any kind, whether express or implied. |
9 | */ | 9 | */ |
10 | 10 | ||