aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm33xx-core.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-04-16 10:23:46 -0700
committerTony Lindgren <tony@atomide.com>2018-04-30 12:04:51 -0700
commit02b83dcb3db7974cc25834b67ffac7eb90ce56ac (patch)
tree0769846454f047728c1ee301342ebec607865a43 /arch/arm/mach-omap2/pm33xx-core.c
parentARM: OMAP2+: Only probe SDMA via ti-sysc if configured in dts (diff)
downloadlinux-dev-02b83dcb3db7974cc25834b67ffac7eb90ce56ac.tar.xz
linux-dev-02b83dcb3db7974cc25834b67ffac7eb90ce56ac.zip
ARM: OMAP2+: Initialize SoC PM later
There's no need to probe devices until at module_init time and we currently have at least PM trying to use I2C for PMICs early on. As only a part of the SoC init_early is SoC specific, we only need to call the SoC specific PM init function. And we can modify omap2_common_pm_late_init() so it becomes a late_initcall(). Note that this changes am335x to call omap2_clk_enable_autoidle_all() that seems to be missing currently. Cc: Keerthy <j-keerthy@ti.com> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm33xx-core.c')
-rw-r--r--arch/arm/mach-omap2/pm33xx-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm33xx-core.c b/arch/arm/mach-omap2/pm33xx-core.c
index 93c0b5ba9f09..9b3755a2e2ec 100644
--- a/arch/arm/mach-omap2/pm33xx-core.c
+++ b/arch/arm/mach-omap2/pm33xx-core.c
@@ -173,7 +173,7 @@ static struct am33xx_pm_platform_data *am33xx_pm_get_pdata(void)
return NULL;
}
-void __init amx3_common_pm_init(void)
+int __init amx3_common_pm_init(void)
{
struct am33xx_pm_platform_data *pdata;
struct platform_device_info devinfo;
@@ -186,4 +186,6 @@ void __init amx3_common_pm_init(void)
devinfo.size_data = sizeof(*pdata);
devinfo.id = -1;
platform_device_register_full(&devinfo);
+
+ return 0;
}