diff options
| author | Vaibhav Hiremath <hvaibhav@ti.com> | 2012-07-05 08:05:15 -0700 | 
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2012-07-05 08:05:15 -0700 | 
| commit | ecc46cfdad7499a21296f0757059c4965f1fbc98 (patch) | |
| tree | c040dbcf69fc66b809893bfd4963fb72904be757 /arch/arm/mach-omap2/common.h | |
| parent | 971b8a9c3eeb798f6201299728fdbb04ebb681c6 (diff) | |
| download | olio-linux-3.10-ecc46cfdad7499a21296f0757059c4965f1fbc98.tar.xz olio-linux-3.10-ecc46cfdad7499a21296f0757059c4965f1fbc98.zip  | |
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 5d99c1b2cb4..404f172d95a 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);  /* These get called from omap2_set_globals_xxxx(), do not call these */  void omap2_set_globals_tap(struct omap_globals *); +#if defined(CONFIG_SOC_HAS_OMAP2_SDRC)  void omap2_set_globals_sdrc(struct omap_globals *); +#else +static inline void omap2_set_globals_sdrc(struct omap_globals *omap2_globals) +{ } +#endif  void omap2_set_globals_control(struct omap_globals *);  void omap2_set_globals_prcm(struct omap_globals *);  |