Commit b0ad062c authored by Sebastian Siewior's avatar Sebastian Siewior Committed by Scott Wood

powerpc: 85xx rdb: move np pointer to avoid builderror

If CONFIG_UCC_GETH or CONFIG_SERIAL_QE is not defined then we get a
warning about an used variable which leads to a build error.
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent c70a9744
...@@ -86,10 +86,6 @@ void __init mpc85xx_rdb_pic_init(void) ...@@ -86,10 +86,6 @@ void __init mpc85xx_rdb_pic_init(void)
*/ */
static void __init mpc85xx_rdb_setup_arch(void) static void __init mpc85xx_rdb_setup_arch(void)
{ {
#ifdef CONFIG_QUICC_ENGINE
struct device_node *np;
#endif
if (ppc_md.progress) if (ppc_md.progress)
ppc_md.progress("mpc85xx_rdb_setup_arch()", 0); ppc_md.progress("mpc85xx_rdb_setup_arch()", 0);
...@@ -101,6 +97,7 @@ static void __init mpc85xx_rdb_setup_arch(void) ...@@ -101,6 +97,7 @@ static void __init mpc85xx_rdb_setup_arch(void)
mpc85xx_qe_init(); mpc85xx_qe_init();
#if defined(CONFIG_UCC_GETH) || defined(CONFIG_SERIAL_QE) #if defined(CONFIG_UCC_GETH) || defined(CONFIG_SERIAL_QE)
if (machine_is(p1025_rdb)) { if (machine_is(p1025_rdb)) {
struct device_node *np;
struct ccsr_guts __iomem *guts; struct ccsr_guts __iomem *guts;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment