diff options
author | Sebastian Siewior <bigeasy@linutronix.de> | 2014-02-20 20:48:16 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-03-20 00:02:42 (GMT) |
commit | b0ad062cc410331e33e710bbc50d02ed587a217f (patch) | |
tree | 2c8c782c741c70f191541fd2856b2922829a07ef /arch/powerpc/platforms | |
parent | c70a97447b34ceaee2eebcd5a78886398d91ffde (diff) | |
download | linux-b0ad062cc410331e33e710bbc50d02ed587a217f.tar.xz |
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: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index e15bdd1..232a6a7 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c @@ -86,10 +86,6 @@ void __init mpc85xx_rdb_pic_init(void) */ static void __init mpc85xx_rdb_setup_arch(void) { -#ifdef CONFIG_QUICC_ENGINE - struct device_node *np; -#endif - if (ppc_md.progress) ppc_md.progress("mpc85xx_rdb_setup_arch()", 0); @@ -101,6 +97,7 @@ static void __init mpc85xx_rdb_setup_arch(void) mpc85xx_qe_init(); #if defined(CONFIG_UCC_GETH) || defined(CONFIG_SERIAL_QE) if (machine_is(p1025_rdb)) { + struct device_node *np; struct ccsr_guts __iomem *guts; |