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.h | |
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.h')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 5d99c1b2cb48..404f172d95a8 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -174,7 +174,12 @@ void omap2_set_globals_am33xx(void); | |||
174 | 174 | ||
175 | /* These get called from omap2_set_globals_xxxx(), do not call these */ | 175 | /* These get called from omap2_set_globals_xxxx(), do not call these */ |
176 | void omap2_set_globals_tap(struct omap_globals *); | 176 | void omap2_set_globals_tap(struct omap_globals *); |
177 | #if defined(CONFIG_SOC_HAS_OMAP2_SDRC) | ||
177 | void omap2_set_globals_sdrc(struct omap_globals *); | 178 | void omap2_set_globals_sdrc(struct omap_globals *); |
179 | #else | ||
180 | static inline void omap2_set_globals_sdrc(struct omap_globals *omap2_globals) | ||
181 | { } | ||
182 | #endif | ||
178 | void omap2_set_globals_control(struct omap_globals *); | 183 | void omap2_set_globals_control(struct omap_globals *); |
179 | void omap2_set_globals_prcm(struct omap_globals *); | 184 | void omap2_set_globals_prcm(struct omap_globals *); |
180 | 185 | ||