diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-26 16:14:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-26 16:14:01 -0400 |
commit | f465d145d76803fe6332092775d891c8c509aa44 (patch) | |
tree | 45889e2eee7e8288ef269e9b661111364a71c25f /arch/arm/mach-omap2/common.h | |
parent | 30b842889eea1bea02dff55b13d2ddf07a46ce78 (diff) | |
parent | 80b9abf973462499c1a0110df47f62cc90361e2c (diff) |
Merge tag 'cleanup-initcall' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull sweeping late_initcall cleanup for arm-soc from Olof Johansson:
"This is a patch series from Shawn Guo that moves from individual
late_initcalls() to using a member in the machine structure to invoke
a platform's late initcalls.
This cleanup is a step in the move towards multiplatform kernels since
it would reduce the need to check for compatible platforms in each and
every initcall."
Fix up trivial conflicts in arch/arm/mach-{exynos/mach-universal_c210.c,
imx/mach-cpuimx51.c, omap2/board-generic.c} due to changes nearby (and,
in the case of cpuimx51.c the board support being deleted)
* tag 'cleanup-initcall' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
ARM: ux500: use machine specific hook for late init
ARM: tegra: use machine specific hook for late init
ARM: shmobile: use machine specific hook for late init
ARM: sa1100: use machine specific hook for late init
ARM: s3c64xx: use machine specific hook for late init
ARM: prima2: use machine specific hook for late init
ARM: pnx4008: use machine specific hook for late init
ARM: omap2: use machine specific hook for late init
ARM: omap1: use machine specific hook for late init
ARM: msm: use machine specific hook for late init
ARM: imx: use machine specific hook for late init
ARM: exynos: use machine specific hook for late init
ARM: ep93xx: use machine specific hook for late init
ARM: davinci: use machine specific hook for late init
ARM: provide a late_initcall hook for platform initialization
Diffstat (limited to 'arch/arm/mach-omap2/common.h')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 4cb1fe666311..be9dfd1abe60 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -79,6 +79,42 @@ static inline void omap44xx_map_common_io(void) | |||
79 | } | 79 | } |
80 | #endif | 80 | #endif |
81 | 81 | ||
82 | #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP2) | ||
83 | int omap2_pm_init(void); | ||
84 | #else | ||
85 | static inline int omap2_pm_init(void) | ||
86 | { | ||
87 | return 0; | ||
88 | } | ||
89 | #endif | ||
90 | |||
91 | #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) | ||
92 | int omap3_pm_init(void); | ||
93 | #else | ||
94 | static inline int omap3_pm_init(void) | ||
95 | { | ||
96 | return 0; | ||
97 | } | ||
98 | #endif | ||
99 | |||
100 | #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP4) | ||
101 | int omap4_pm_init(void); | ||
102 | #else | ||
103 | static inline int omap4_pm_init(void) | ||
104 | { | ||
105 | return 0; | ||
106 | } | ||
107 | #endif | ||
108 | |||
109 | #ifdef CONFIG_OMAP_MUX | ||
110 | int omap_mux_late_init(void); | ||
111 | #else | ||
112 | static inline int omap_mux_late_init(void) | ||
113 | { | ||
114 | return 0; | ||
115 | } | ||
116 | #endif | ||
117 | |||
82 | extern void omap2_init_common_infrastructure(void); | 118 | extern void omap2_init_common_infrastructure(void); |
83 | 119 | ||
84 | extern struct sys_timer omap2_timer; | 120 | extern struct sys_timer omap2_timer; |
@@ -95,6 +131,17 @@ void omap3_init_early(void); /* Do not use this one */ | |||
95 | void am35xx_init_early(void); | 131 | void am35xx_init_early(void); |
96 | void ti81xx_init_early(void); | 132 | void ti81xx_init_early(void); |
97 | void omap4430_init_early(void); | 133 | void omap4430_init_early(void); |
134 | void omap3_init_late(void); /* Do not use this one */ | ||
135 | void omap4430_init_late(void); | ||
136 | void omap2420_init_late(void); | ||
137 | void omap2430_init_late(void); | ||
138 | void omap3430_init_late(void); | ||
139 | void omap35xx_init_late(void); | ||
140 | void omap3630_init_late(void); | ||
141 | void am35xx_init_late(void); | ||
142 | void ti81xx_init_late(void); | ||
143 | void omap4430_init_late(void); | ||
144 | int omap2_common_pm_late_init(void); | ||
98 | void omap_prcm_restart(char, const char *); | 145 | void omap_prcm_restart(char, const char *); |
99 | 146 | ||
100 | /* | 147 | /* |