]> err.no Git - linux-2.6/commitdiff
[POWERPC] 83xx: Suppress warning when CONFIG_PCI is not defined
authorLi Yang <leoli@freescale.com>
Thu, 10 May 2007 03:14:57 +0000 (11:14 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 10 May 2007 03:44:56 +0000 (22:44 -0500)
Suppress warning when CONFIG_PCI is not defined.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/83xx/mpc8313_rdb.c
arch/powerpc/platforms/83xx/mpc834x_itx.c
arch/powerpc/platforms/83xx/mpc834x_mds.c

index 32e9e9492841ac600f68fb4bf07dfb35218837e3..96970ac887ee267dc2826f607298df6cf930e36c 100644 (file)
@@ -40,7 +40,9 @@ unsigned long isa_mem_base = 0;
  */
 static void __init mpc8313_rdb_setup_arch(void)
 {
+#ifdef CONFIG_PCI
        struct device_node *np;
+#endif
 
        if (ppc_md.progress)
                ppc_md.progress("mpc8313_rdb_setup_arch()", 0);
index 3c009f6d4a4f12baec689d577cba7070cb76f097..40a01947d6840428733df06f316d8f0be3152904 100644 (file)
@@ -50,7 +50,9 @@ unsigned long isa_mem_base = 0;
  */
 static void __init mpc834x_itx_setup_arch(void)
 {
+#ifdef CONFIG_PCI
        struct device_node *np;
+#endif
 
        if (ppc_md.progress)
                ppc_md.progress("mpc834x_itx_setup_arch()", 0);
index 8aa9a93e2aa2c78a30c8920bd58c78e93799a7db..10394b2d7e7a0bd44cb4cc9871d7ddc30f876897 100644 (file)
@@ -120,7 +120,9 @@ static int mpc834x_usb_cfg(void)
  */
 static void __init mpc834x_mds_setup_arch(void)
 {
+#ifdef CONFIG_PCI
        struct device_node *np;
+#endif
 
        if (ppc_md.progress)
                ppc_md.progress("mpc834x_mds_setup_arch()", 0);