powerpc/powernv: Move opal_power_control_init() call in opal_init().
opal_power_control_init() depends on opal message notifier to be initialized, which is done in opal_init()->opal_message_init(). But both these initialization are called through machine initcalls and it all depends on in which order they being called. So far these are called in correct order (may be we got lucky) and never saw any issue. But it is clearer to control initialization order explicitly by moving opal_power_control_init() into opal_init(). Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committad av
Michael Ellerman

förälder
ae6263cc33
incheckning
08fb726df1
@@ -960,6 +960,9 @@ static int __init opal_init(void)
|
||||
/* Initialise OPAL sensor groups */
|
||||
opal_sensor_groups_init();
|
||||
|
||||
/* Initialise OPAL Power control interface */
|
||||
opal_power_control_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
machine_subsys_initcall(powernv, opal_init);
|
||||
|
Referens i nytt ärende
Block a user