diff options
author | Pankaj Dubey <pankaj.dubey@samsung.com> | 2014-07-07 18:51:11 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-07-14 19:40:31 -0400 |
commit | 5e299f65eb83a7c6e928257d3a1069a57ce8bcbb (patch) | |
tree | 9109ee1c6430cabf012cdb6509a72f2d3e25e039 | |
parent | d79992ac59fa51e7663cfec73b5a9cdcb16eb872 (diff) |
ARM: EXYNOS: Make exynos machine_ops as static
As machine function ops are used only in this file let's make
them static. Also remove unused and unwanted declarations from
common.h.
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-exynos/common.h | 8 | ||||
-rw-r--r-- | arch/arm/mach-exynos/exynos.c | 6 |
2 files changed, 3 insertions, 11 deletions
diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index 3371669dabc6..152b46417112 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h | |||
@@ -111,17 +111,9 @@ IS_SAMSUNG_CPU(exynos5800, EXYNOS5800_SOC_ID, EXYNOS5_SOC_MASK) | |||
111 | #define soc_is_exynos5() (soc_is_exynos5250() || soc_is_exynos5410() || \ | 111 | #define soc_is_exynos5() (soc_is_exynos5250() || soc_is_exynos5410() || \ |
112 | soc_is_exynos5420() || soc_is_exynos5800()) | 112 | soc_is_exynos5420() || soc_is_exynos5800()) |
113 | 113 | ||
114 | void mct_init(void __iomem *base, int irq_g0, int irq_l0, int irq_l1); | ||
115 | |||
116 | struct map_desc; | ||
117 | extern void __iomem *sysram_ns_base_addr; | 114 | extern void __iomem *sysram_ns_base_addr; |
118 | extern void __iomem *sysram_base_addr; | 115 | extern void __iomem *sysram_base_addr; |
119 | void exynos_init_io(void); | ||
120 | void exynos_restart(enum reboot_mode mode, const char *cmd); | ||
121 | void exynos_sysram_init(void); | 116 | void exynos_sysram_init(void); |
122 | void exynos_cpuidle_init(void); | ||
123 | void exynos_cpufreq_init(void); | ||
124 | void exynos_init_late(void); | ||
125 | 117 | ||
126 | void exynos_firmware_init(void); | 118 | void exynos_firmware_init(void); |
127 | 119 | ||
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 46d893fcbe85..2e5dd50d1f86 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c | |||
@@ -143,7 +143,7 @@ static struct map_desc exynos5_iodesc[] __initdata = { | |||
143 | }, | 143 | }, |
144 | }; | 144 | }; |
145 | 145 | ||
146 | void exynos_restart(enum reboot_mode mode, const char *cmd) | 146 | static void exynos_restart(enum reboot_mode mode, const char *cmd) |
147 | { | 147 | { |
148 | struct device_node *np; | 148 | struct device_node *np; |
149 | u32 val = 0x1; | 149 | u32 val = 0x1; |
@@ -204,7 +204,7 @@ void __init exynos_sysram_init(void) | |||
204 | } | 204 | } |
205 | } | 205 | } |
206 | 206 | ||
207 | void __init exynos_init_late(void) | 207 | static void __init exynos_init_late(void) |
208 | { | 208 | { |
209 | if (of_machine_is_compatible("samsung,exynos5440")) | 209 | if (of_machine_is_compatible("samsung,exynos5440")) |
210 | /* to be supported later */ | 210 | /* to be supported later */ |
@@ -251,7 +251,7 @@ static void __init exynos_map_io(void) | |||
251 | iotable_init(exynos5_iodesc, ARRAY_SIZE(exynos5_iodesc)); | 251 | iotable_init(exynos5_iodesc, ARRAY_SIZE(exynos5_iodesc)); |
252 | } | 252 | } |
253 | 253 | ||
254 | void __init exynos_init_io(void) | 254 | static void __init exynos_init_io(void) |
255 | { | 255 | { |
256 | debug_ll_io_init(); | 256 | debug_ll_io_init(); |
257 | 257 | ||