diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2012-02-11 07:27:08 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-03-14 05:13:02 -0400 |
commit | 906c789c64ac18c3fa536fe9d3c37e44b5914af1 (patch) | |
tree | f43154960b49da0e876d66faa403865008645d72 /arch/arm/mach-exynos | |
parent | 790254665293fd5f0961a4bb6e2ab07d5d311522 (diff) |
ARM: EXYNOS: to declare static for mach-exynos/common.c
According to commit cc511b8d84d8 ("ARM: 7257/1: EXYNOS: introduce
arch/arm/mach-exynos/common.[ch]"), we don't need to declare extern
for exynos4_map_io(), exynos4_init_clocks(), exynos4_init_uarts(),
and exynos_init(). And the exynos4210_register_clocks() and
exynos4212_register_clocks depend on each SoC not ARCH_EXYNOS4.
So this patch fixed above.
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/common.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-exynos/common.h | 28 |
2 files changed, 20 insertions, 21 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 34e819068fa4..a1f8a9940e62 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c | |||
@@ -50,6 +50,11 @@ static const char name_exynos4210[] = "EXYNOS4210"; | |||
50 | static const char name_exynos4212[] = "EXYNOS4212"; | 50 | static const char name_exynos4212[] = "EXYNOS4212"; |
51 | static const char name_exynos4412[] = "EXYNOS4412"; | 51 | static const char name_exynos4412[] = "EXYNOS4412"; |
52 | 52 | ||
53 | static void exynos4_map_io(void); | ||
54 | static void exynos4_init_clocks(int xtal); | ||
55 | static void exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
56 | static int exynos_init(void); | ||
57 | |||
53 | static struct cpu_table cpu_ids[] __initdata = { | 58 | static struct cpu_table cpu_ids[] __initdata = { |
54 | { | 59 | { |
55 | .idcode = EXYNOS4210_CPU_ID, | 60 | .idcode = EXYNOS4210_CPU_ID, |
@@ -225,7 +230,7 @@ void __init exynos_init_io(struct map_desc *mach_desc, int size) | |||
225 | s3c_init_cpu(samsung_cpu_id, cpu_ids, ARRAY_SIZE(cpu_ids)); | 230 | s3c_init_cpu(samsung_cpu_id, cpu_ids, ARRAY_SIZE(cpu_ids)); |
226 | } | 231 | } |
227 | 232 | ||
228 | void __init exynos4_map_io(void) | 233 | static void __init exynos4_map_io(void) |
229 | { | 234 | { |
230 | iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc)); | 235 | iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc)); |
231 | 236 | ||
@@ -256,7 +261,7 @@ void __init exynos4_map_io(void) | |||
256 | s5p_hdmi_setname("exynos4-hdmi"); | 261 | s5p_hdmi_setname("exynos4-hdmi"); |
257 | } | 262 | } |
258 | 263 | ||
259 | void __init exynos4_init_clocks(int xtal) | 264 | static void __init exynos4_init_clocks(int xtal) |
260 | { | 265 | { |
261 | printk(KERN_DEBUG "%s: initializing clocks\n", __func__); | 266 | printk(KERN_DEBUG "%s: initializing clocks\n", __func__); |
262 | 267 | ||
@@ -456,7 +461,7 @@ static int __init exynos4_l2x0_cache_init(void) | |||
456 | early_initcall(exynos4_l2x0_cache_init); | 461 | early_initcall(exynos4_l2x0_cache_init); |
457 | #endif | 462 | #endif |
458 | 463 | ||
459 | int __init exynos_init(void) | 464 | static int __init exynos_init(void) |
460 | { | 465 | { |
461 | printk(KERN_INFO "EXYNOS: Initializing architecture\n"); | 466 | printk(KERN_INFO "EXYNOS: Initializing architecture\n"); |
462 | return device_register(&exynos4_dev); | 467 | return device_register(&exynos4_dev); |
@@ -464,7 +469,7 @@ int __init exynos_init(void) | |||
464 | 469 | ||
465 | /* uart registration process */ | 470 | /* uart registration process */ |
466 | 471 | ||
467 | void __init exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 472 | static void __init exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
468 | { | 473 | { |
469 | struct s3c2410_uartcfg *tcfg = cfg; | 474 | struct s3c2410_uartcfg *tcfg = cfg; |
470 | u32 ucnt; | 475 | u32 ucnt; |
diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index 8c1efe692c20..b32c6b5f4231 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h | |||
@@ -12,39 +12,33 @@ | |||
12 | #ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H | 12 | #ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H |
13 | #define __ARCH_ARM_MACH_EXYNOS_COMMON_H | 13 | #define __ARCH_ARM_MACH_EXYNOS_COMMON_H |
14 | 14 | ||
15 | extern struct sys_timer exynos4_timer; | ||
16 | |||
15 | void exynos_init_io(struct map_desc *mach_desc, int size); | 17 | void exynos_init_io(struct map_desc *mach_desc, int size); |
16 | void exynos4_init_irq(void); | 18 | void exynos4_init_irq(void); |
19 | void exynos4_restart(char mode, const char *cmd); | ||
17 | 20 | ||
18 | #ifdef CONFIG_ARCH_EXYNOS4 | 21 | #ifdef CONFIG_ARCH_EXYNOS4 |
19 | void exynos4_register_clocks(void); | 22 | void exynos4_register_clocks(void); |
20 | void exynos4_setup_clocks(void); | 23 | void exynos4_setup_clocks(void); |
21 | 24 | ||
22 | void exynos4210_register_clocks(void); | ||
23 | void exynos4212_register_clocks(void); | ||
24 | |||
25 | #else | 25 | #else |
26 | #define exynos4_register_clocks() | 26 | #define exynos4_register_clocks() |
27 | #define exynos4_setup_clocks() | 27 | #define exynos4_setup_clocks() |
28 | |||
29 | #define exynos4210_register_clocks() | ||
30 | #define exynos4212_register_clocks() | ||
31 | #endif | 28 | #endif |
32 | 29 | ||
33 | void exynos4_restart(char mode, const char *cmd); | 30 | #ifdef CONFIG_CPU_EXYNOS4210 |
31 | void exynos4210_register_clocks(void); | ||
34 | 32 | ||
35 | extern struct sys_timer exynos4_timer; | 33 | #else |
34 | #define exynos4210_register_clocks() | ||
35 | #endif | ||
36 | 36 | ||
37 | #ifdef CONFIG_ARCH_EXYNOS | 37 | #ifdef CONFIG_SOC_EXYNOS4212 |
38 | extern int exynos_init(void); | 38 | void exynos4212_register_clocks(void); |
39 | extern void exynos4_map_io(void); | ||
40 | extern void exynos4_init_clocks(int xtal); | ||
41 | extern void exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
42 | 39 | ||
43 | #else | 40 | #else |
44 | #define exynos4_init_clocks NULL | 41 | #define exynos4212_register_clocks() |
45 | #define exynos4_init_uarts NULL | ||
46 | #define exynos4_map_io NULL | ||
47 | #define exynos_init NULL | ||
48 | #endif | 42 | #endif |
49 | 43 | ||
50 | #endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */ | 44 | #endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */ |