diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-03-31 18:15:45 +0300 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-05-15 22:35:04 -0600 |
commit | b550e47f5e9e74999f754371bdc79331d19f84a3 (patch) | |
tree | 7d549eb62e5af53722e0373a89b2b192977e1306 /arch/arm/mach-omap2/prm_common.c | |
parent | 2541d15f16479fd56debe1ea55dee03c3886e33c (diff) |
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.c | 8 |
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); |