summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/prm_common.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-03-31 17:15:45 +0200
committerPaul Walmsley <paul@pwsan.com>2014-05-16 06:35:04 +0200
commitb550e47f5e9e74999f754371bdc79331d19f84a3 (patch)
tree7d549eb62e5af53722e0373a89b2b192977e1306 /arch/arm/mach-omap2/prm_common.c
parentARM: OMAP3/OMAP4: PRM: add prm_features flags and add IO wakeup under it (diff)
downloadlinux-b550e47f5e9e74999f754371bdc79331d19f84a3.tar.xz
linux-b550e47f5e9e74999f754371bdc79331d19f84a3.zip
ARM: OMAP3/4: PRM: add support of late_init call to prm_ll_ops
SoC specific late_init call is now registered during PRM init, and will be called automatically by PRM core. This helps to get rid of some redundant initcalls and cpu_is_X checks from the PRM code. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/prm_common.c')
-rw-r--r--arch/arm/mach-omap2/prm_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c
index aa2550dd2ac1..25e8b8232115 100644
--- a/arch/arm/mach-omap2/prm_common.c
+++ b/arch/arm/mach-omap2/prm_common.c
@@ -527,3 +527,11 @@ int __init of_prcm_init(void)
return 0;
}
+
+static int __init prm_late_init(void)
+{
+ if (prm_ll_data->late_init)
+ return prm_ll_data->late_init();
+ return 0;
+}
+subsys_initcall(prm_late_init);