diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-11-21 08:51:37 -0500 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-03-31 14:26:50 -0400 |
commit | 425dc8b2dff222ffd88f31f589dc647409cae0ce (patch) | |
tree | 43a3919b84c1119fda11fb22b48c828bc934eda6 /arch/arm/mach-omap2/prm_common.c | |
parent | 48e0c1148d18de677f1b2aec179f36fb7c1e3839 (diff) |
ARM: OMAP2+: CM: move SoC specific init calls within a generic API
This gets rid of need for some exported driver APIs, and simplifies the
initialization of the CM driver. Done in preparation to make CM a
separate driver. The init data is now also passed to the SoC specific
implementations, allowing future expansion to add feature flags etc.
Signed-off-by: Tero Kristo <t-kristo@ti.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, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index a834124c5309..3e932b8b8ce9 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c | |||
@@ -770,7 +770,13 @@ int __init omap2_prm_base_init(void) | |||
770 | 770 | ||
771 | int __init omap2_prcm_base_init(void) | 771 | int __init omap2_prcm_base_init(void) |
772 | { | 772 | { |
773 | return omap2_prm_base_init(); | 773 | int ret; |
774 | |||
775 | ret = omap2_prm_base_init(); | ||
776 | if (ret) | ||
777 | return ret; | ||
778 | |||
779 | return omap2_cm_base_init(); | ||
774 | } | 780 | } |
775 | 781 | ||
776 | /** | 782 | /** |