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>
This commit is contained in:

committed by
Olof Johansson

parent
85594df2ba
commit
a283580c52
@@ -47,9 +47,7 @@ static const struct platform_suspend_ops highbank_pm_ops = {
|
||||
.valid = suspend_valid_only_mem,
|
||||
};
|
||||
|
||||
static int __init highbank_pm_init(void)
|
||||
void __init highbank_pm_init(void)
|
||||
{
|
||||
suspend_set_ops(&highbank_pm_ops);
|
||||
return 0;
|
||||
}
|
||||
module_init(highbank_pm_init);
|
||||
|
Reference in New Issue
Block a user