]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc: 85xx rdb: move np pointer to avoid builderror
authorSebastian Siewior <bigeasy@linutronix.de>
Thu, 20 Feb 2014 20:48:16 +0000 (21:48 +0100)
committerScott Wood <scottwood@freescale.com>
Thu, 20 Mar 2014 00:02:42 +0000 (19:02 -0500)
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>
arch/powerpc/platforms/85xx/mpc85xx_rdb.c

index e15bdd18fdb2f2571312a6cfad74ee5ee741bbd9..232a6a79791bb18691f5e9fe37194b69bf6ae880 100644 (file)
@@ -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;