powerpc/85xx: Get twr_p102x to compile again
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 19 Dec 2019 15:16:02 +0000 (16:16 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Jan 2020 05:25:31 +0000 (16:25 +1100)
commit3a9d970f17e05a7b26f782beb8f7f2118d1741ea
treedc5b348452d192a92c37fc8696febe8a2af936b8
parent978bff4e521dab0a72ee4f2627f9245f7d3d6f64
powerpc/85xx: Get twr_p102x to compile again

With CONFIG_QUICC_ENGINE enabled and CONFIG_UCC_GETH + CONFIG_SERIAL_QE
disabled we have an unused variable (np). The code won't compile with
-Werror.

Move the np variable to the block where it is actually used.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Scott Wood <oss@buserror.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191219151602.1908411-1-bigeasy@linutronix.de
arch/powerpc/platforms/85xx/twr_p102x.c