]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - arch/powerpc/platforms/powernv/opal.c
powerpc/powernv: Move opal_power_control_init() call in opal_init().
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Thu, 13 Dec 2018 05:47:31 +0000 (11:17 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 00:32:49 +0000 (11:32 +1100)
commit08fb726df13778a54592aaa1deea6a154637c868
tree97bd41545866508119afff9ec6a1b82390ce2593
parentae6263cc33742d1c179510b6aadd31108fe89a89
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>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-power.c
arch/powerpc/platforms/powernv/opal.c