提交 999a4d2a 编写于 作者: M Magnus Damm 提交者: Rafael J. Wysocki

ARM: mach-shmobile: Runtime PM late init callback

Add a mach-shmobile specific callback for SoC-specific code
to hook into. By having the late_initcall() in a common place
we can have multi-SoC/board support in the same kernel binary.
Signed-off-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
上级 d24771de
......@@ -12,6 +12,7 @@ extern struct platform_suspend_ops shmobile_suspend_ops;
struct cpuidle_device;
extern void (*shmobile_cpuidle_modes[])(void);
extern void (*shmobile_cpuidle_setup)(struct cpuidle_device *dev);
extern void (*shmobile_runtime_pm_late_init)(void);
extern void sh7367_init_irq(void);
extern void sh7367_add_early_devices(void);
......
......@@ -56,3 +56,13 @@ static int __init sh_pm_runtime_init(void)
return 0;
}
core_initcall(sh_pm_runtime_init);
void (*shmobile_runtime_pm_late_init)(void);
static int __init sh_pm_runtime_late_init(void)
{
if (shmobile_runtime_pm_late_init)
shmobile_runtime_pm_late_init();
return 0;
}
late_initcall(sh_pm_runtime_late_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册