summaryrefslogtreecommitdiff
path: root/arch/arm/mach-pnx4008/core.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-04-26 12:40:32 (GMT)
committerShawn Guo <shawn.guo@linaro.org>2012-05-08 12:36:21 (GMT)
commitcafa61907cb0aabbedf3c248f197130dc5332147 (patch)
tree308fc3efc6ce7b27d4934a119db378e0d51cea3d /arch/arm/mach-pnx4008/core.c
parentbbd707acee279a61177a604822db92e8164d00db (diff)
downloadlinux-fsl-qoriq-cafa61907cb0aabbedf3c248f197130dc5332147.tar.xz
ARM: pnx4008: use machine specific hook for late init
Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-pnx4008/core.c')
-rw-r--r--arch/arm/mach-pnx4008/core.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-pnx4008/core.c b/arch/arm/mach-pnx4008/core.c
index be4c928..a00d2f1 100644
--- a/arch/arm/mach-pnx4008/core.c
+++ b/arch/arm/mach-pnx4008/core.c
@@ -265,6 +265,17 @@ static void pnx4008_restart(char mode, const char *cmd)
soft_restart(0);
}
+#ifdef CONFIG_PM
+extern int pnx4008_pm_init(void);
+#else
+static inline int pnx4008_pm_init(void) { return 0; }
+#endif
+
+void __init pnx4008_init_late(void)
+{
+ pnx4008_pm_init();
+}
+
extern struct sys_timer pnx4008_timer;
MACHINE_START(PNX4008, "Philips PNX4008")
@@ -273,6 +284,7 @@ MACHINE_START(PNX4008, "Philips PNX4008")
.map_io = pnx4008_map_io,
.init_irq = pnx4008_init_irq,
.init_machine = pnx4008_init,
+ .init_late = pnx4008_init_late,
.timer = &pnx4008_timer,
.restart = pnx4008_restart,
MACHINE_END