powerpc/eeh: Rework EEH initialisation
authorOliver O'Halloran <oohall@gmail.com>
Fri, 18 Sep 2020 09:30:42 +0000 (19:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Oct 2020 12:22:24 +0000 (23:22 +1100)
commitd125aedb404204de0579b16028096b2cc09e4deb
tree3c0a52b9fa4367f95081cdb34846f2bb21fed9f1
parent874dc62f548f28649ac3d7e31025b1e8cec3868a
powerpc/eeh: Rework EEH initialisation

Drop the EEH register / unregister ops thing and have the platform pass the
ops structure into eeh_init() directly. This takes one initcall out of the
EEH setup path and it means we're only doing EEH setup on the platforms
which actually support it. It's also less code and generally easier to
follow.

No functional changes.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200918093050.37344-1-oohall@gmail.com
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c
arch/powerpc/platforms/powernv/eeh-powernv.c
arch/powerpc/platforms/pseries/eeh_pseries.c