ARM: highbank: call highbank_pm_init from .init_machine

Being a module_init call, highbank_pm_init will cause problem with
multi-platform build running on other platforms.  Call it from
.init_machine instead.

Reported-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
这个提交包含在:
Rob Herring
2012-09-17 09:55:12 -05:00
提交者 Olof Johansson
父节点 85594df2ba
当前提交 a283580c52
修改 3 个文件,包含 8 行新增3 行删除

查看文件

@@ -152,6 +152,7 @@ static void highbank_power_off(void)
static void __init highbank_init(void)
{
pm_power_off = highbank_power_off;
highbank_pm_init();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}