aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-11-04 11:05:24 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-11-10 17:30:01 -0500
commita528721da08a793e0cec6ef6281d404eddd6e27b (patch)
tree909557c79b69093c6aaa3244a1c0181e419a5158 /arch/arm/kernel
parent1ea6b8f48918282bdca0b32a34095504ee65bab5 (diff)
ARM: restart: add restart hook to machine_desc record
Add a restart hook to the machine_desc record so we don't have to populate all platforms with init_early methods to initialize the arm_pm_restart function pointer. Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Will Deacon <will.deacon@arm.com> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 7e7977ab994f..4755e2827dc3 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -922,6 +922,9 @@ void __init setup_arch(char **cmdline_p)
922 paging_init(mdesc); 922 paging_init(mdesc);
923 request_standard_resources(mdesc); 923 request_standard_resources(mdesc);
924 924
925 if (mdesc->restart)
926 arm_pm_restart = mdesc->restart;
927
925 unflatten_device_tree(); 928 unflatten_device_tree();
926 929
927#ifdef CONFIG_SMP 930#ifdef CONFIG_SMP