diff options
author | Vaibhav Hiremath <hvaibhav@ti.com> | 2012-07-05 11:05:15 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-07-05 11:05:15 -0400 |
commit | ecc46cfdad7499a21296f0757059c4965f1fbc98 (patch) | |
tree | c040dbcf69fc66b809893bfd4963fb72904be757 /arch/arm/mach-omap2/common.c | |
parent | 971b8a9c3eeb798f6201299728fdbb04ebb681c6 (diff) |
ARM: OMAP2+: Remove unnecessary ifdef around __omap2_set_globals
The function __omap2_set_globals() can be common across all
platforms/architectures, even in case of omap4, internally it
calls same set of functions as in __omap2_set_globals() function
(except for sdrc).
This patch adds new config flag SOC_HAS_OMAP2_SDRC to handle sdrc,
so that we can reuse same function across omap2/3/4...
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/common.c')
-rw-r--r-- | arch/arm/mach-omap2/common.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c index a7aa538e681d..73d2a0b9ca04 100644 --- a/arch/arm/mach-omap2/common.c +++ b/arch/arm/mach-omap2/common.c | |||
@@ -29,8 +29,6 @@ | |||
29 | 29 | ||
30 | /* Global address base setup code */ | 30 | /* Global address base setup code */ |
31 | 31 | ||
32 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) | ||
33 | |||
34 | static void __init __omap2_set_globals(struct omap_globals *omap2_globals) | 32 | static void __init __omap2_set_globals(struct omap_globals *omap2_globals) |
35 | { | 33 | { |
36 | omap2_set_globals_tap(omap2_globals); | 34 | omap2_set_globals_tap(omap2_globals); |
@@ -39,8 +37,6 @@ static void __init __omap2_set_globals(struct omap_globals *omap2_globals) | |||
39 | omap2_set_globals_prcm(omap2_globals); | 37 | omap2_set_globals_prcm(omap2_globals); |
40 | } | 38 | } |
41 | 39 | ||
42 | #endif | ||
43 | |||
44 | #if defined(CONFIG_SOC_OMAP2420) | 40 | #if defined(CONFIG_SOC_OMAP2420) |
45 | 41 | ||
46 | static struct omap_globals omap242x_globals = { | 42 | static struct omap_globals omap242x_globals = { |
@@ -173,9 +169,7 @@ static struct omap_globals omap4_globals = { | |||
173 | 169 | ||
174 | void __init omap2_set_globals_443x(void) | 170 | void __init omap2_set_globals_443x(void) |
175 | { | 171 | { |
176 | omap2_set_globals_tap(&omap4_globals); | 172 | __omap2_set_globals(&omap4_globals); |
177 | omap2_set_globals_control(&omap4_globals); | ||
178 | omap2_set_globals_prcm(&omap4_globals); | ||
179 | } | 173 | } |
180 | 174 | ||
181 | void __init omap4_map_io(void) | 175 | void __init omap4_map_io(void) |