Re: [PATCH 3/5] powerpc/zImage: Check compatible at driver init

2018-03-20 Thread Oliver
On Tue, Mar 20, 2018 at 8:19 PM, Michael Ellerman wrote: > Oliver O'Halloran writes: >> diff --git a/arch/powerpc/boot/mpc52xx-psc.c >> b/arch/powerpc/boot/mpc52xx-psc.c >> index c2c08633ee35..75470936e661 100644 >> --- a/arch/powerpc/boot/mpc52xx-psc.c >>

Re: [PATCH 3/5] powerpc/zImage: Check compatible at driver init

2018-03-20 Thread Michael Ellerman
Oliver O'Halloran writes: > diff --git a/arch/powerpc/boot/mpc52xx-psc.c b/arch/powerpc/boot/mpc52xx-psc.c > index c2c08633ee35..75470936e661 100644 > --- a/arch/powerpc/boot/mpc52xx-psc.c > +++ b/arch/powerpc/boot/mpc52xx-psc.c > @@ -52,6 +52,9 @@ static unsigned char

[PATCH 3/5] powerpc/zImage: Check compatible at driver init

2018-03-18 Thread Oliver O'Halloran
Have each driver's init function check the compatible string of the node given by the stdout path. This gives the drivers a more traditional probe-also-inits structure. Signed-off-by: Oliver O'Halloran --- arch/powerpc/boot/cpm-serial.c | 2 ++ arch/powerpc/boot/mpc52xx-psc.c