powerpc/xmon: Fix compile error with PPC_8xx=y
authorNicholas Piggin <npiggin@gmail.com>
Fri, 12 May 2017 00:47:07 +0000 (10:47 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 May 2017 04:59:51 +0000 (14:59 +1000)
commit09b6c1129f899c72d70b8bea36020644aa3b5a28
tree229ab8575203e1f4ef578f2b3a4ae8e32076602a
parent67d20418088680d22037119d914982cd982b5c5a
powerpc/xmon: Fix compile error with PPC_8xx=y

Rearrange the code so that mode and badaddr are only defined when
they're used.

Also unsplit the string for easier grepping, and switch from CONFIG_8xx
which is deprecated to CONFIG_PPC_8xx.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c