diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-04-25 22:24:44 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-05-03 23:09:24 +0800 |
commit | 90de41375ccf8373c0a39d04547f3e3c65d90ec0 (patch) | |
tree | d44e023054745ba4d89aba9e95c721528fef890a /arch/arm/kernel | |
parent | 66f75a5d028beaf67c931435fdc3e7823125730c (diff) | |
download | lwn-90de41375ccf8373c0a39d04547f3e3c65d90ec0.tar.gz lwn-90de41375ccf8373c0a39d04547f3e3c65d90ec0.zip |
ARM: provide a late_initcall hook for platform initialization
This allows platforms to set up things that need to be done at
late_initcall time.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Robert Lee <rob.lee@linaro.org>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index ebfac782593f..549f036a5cf8 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -800,6 +800,14 @@ static int __init customize_machine(void) } arch_initcall(customize_machine); +static int __init init_machine_late(void) +{ + if (machine_desc->init_late) + machine_desc->init_late(); + return 0; +} +late_initcall(init_machine_late); + #ifdef CONFIG_KEXEC static inline unsigned long long get_total_mem(void) { |