diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-03-31 11:15:45 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-05-16 00:35:04 -0400 |
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) | |||
527 | 527 | ||
528 | return 0; | 528 | return 0; |
529 | } | 529 | } |
530 | |||
531 | static int __init prm_late_init(void) | ||
532 | { | ||
533 | if (prm_ll_data->late_init) | ||
534 | return prm_ll_data->late_init(); | ||
535 | return 0; | ||
536 | } | ||
537 | subsys_initcall(prm_late_init); | ||