aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2012-02-11 07:27:08 -0500
committerKukjin Kim <kgene.kim@samsung.com>2012-03-14 05:13:02 -0400
commit906c789c64ac18c3fa536fe9d3c37e44b5914af1 (patch)
treef43154960b49da0e876d66faa403865008645d72 /arch/arm/mach-exynos
parent790254665293fd5f0961a4bb6e2ab07d5d311522 (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.c13
-rw-r--r--arch/arm/mach-exynos/common.h28
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";
50static const char name_exynos4212[] = "EXYNOS4212"; 50static const char name_exynos4212[] = "EXYNOS4212";
51static const char name_exynos4412[] = "EXYNOS4412"; 51static const char name_exynos4412[] = "EXYNOS4412";
52 52
53static void exynos4_map_io(void);
54static void exynos4_init_clocks(int xtal);
55static void exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no);
56static int exynos_init(void);
57
53static struct cpu_table cpu_ids[] __initdata = { 58static 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
228void __init exynos4_map_io(void) 233static 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
259void __init exynos4_init_clocks(int xtal) 264static 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)
456early_initcall(exynos4_l2x0_cache_init); 461early_initcall(exynos4_l2x0_cache_init);
457#endif 462#endif
458 463
459int __init exynos_init(void) 464static 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
467void __init exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no) 472static 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
15extern struct sys_timer exynos4_timer;
16
15void exynos_init_io(struct map_desc *mach_desc, int size); 17void exynos_init_io(struct map_desc *mach_desc, int size);
16void exynos4_init_irq(void); 18void exynos4_init_irq(void);
19void exynos4_restart(char mode, const char *cmd);
17 20
18#ifdef CONFIG_ARCH_EXYNOS4 21#ifdef CONFIG_ARCH_EXYNOS4
19void exynos4_register_clocks(void); 22void exynos4_register_clocks(void);
20void exynos4_setup_clocks(void); 23void exynos4_setup_clocks(void);
21 24
22void exynos4210_register_clocks(void);
23void 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
33void exynos4_restart(char mode, const char *cmd); 30#ifdef CONFIG_CPU_EXYNOS4210
31void exynos4210_register_clocks(void);
34 32
35extern 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
38extern int exynos_init(void); 38void exynos4212_register_clocks(void);
39extern void exynos4_map_io(void);
40extern void exynos4_init_clocks(int xtal);
41extern 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 */