diff options
| author | Li Yang <leoli@freescale.com> | 2007-05-09 23:14:57 -0400 |
|---|---|---|
| committer | Kumar Gala <galak@kernel.crashing.org> | 2007-05-09 23:44:56 -0400 |
| commit | b38d06d8c48e8a866bf8f0ae5dabd9eea9c63f7c (patch) | |
| tree | 14aeae81ede9b470e423b0184d54ff1fe19de722 | |
| parent | f1a1eb299a8422c3e8d41753095bec44b2493398 (diff) | |
[POWERPC] 83xx: Suppress warning when CONFIG_PCI is not defined
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>
| -rw-r--r-- | arch/powerpc/platforms/83xx/mpc8313_rdb.c | 2 | ||||
| -rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_itx.c | 2 | ||||
| -rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_mds.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc8313_rdb.c b/arch/powerpc/platforms/83xx/mpc8313_rdb.c index 32e9e9492841..96970ac887ee 100644 --- a/arch/powerpc/platforms/83xx/mpc8313_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc8313_rdb.c | |||
| @@ -40,7 +40,9 @@ unsigned long isa_mem_base = 0; | |||
| 40 | */ | 40 | */ |
| 41 | static void __init mpc8313_rdb_setup_arch(void) | 41 | static void __init mpc8313_rdb_setup_arch(void) |
| 42 | { | 42 | { |
| 43 | #ifdef CONFIG_PCI | ||
| 43 | struct device_node *np; | 44 | struct device_node *np; |
| 45 | #endif | ||
| 44 | 46 | ||
| 45 | if (ppc_md.progress) | 47 | if (ppc_md.progress) |
| 46 | ppc_md.progress("mpc8313_rdb_setup_arch()", 0); | 48 | ppc_md.progress("mpc8313_rdb_setup_arch()", 0); |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c index 3c009f6d4a4f..40a01947d684 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_itx.c +++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c | |||
| @@ -50,7 +50,9 @@ unsigned long isa_mem_base = 0; | |||
| 50 | */ | 50 | */ |
| 51 | static void __init mpc834x_itx_setup_arch(void) | 51 | static void __init mpc834x_itx_setup_arch(void) |
| 52 | { | 52 | { |
| 53 | #ifdef CONFIG_PCI | ||
| 53 | struct device_node *np; | 54 | struct device_node *np; |
| 55 | #endif | ||
| 54 | 56 | ||
| 55 | if (ppc_md.progress) | 57 | if (ppc_md.progress) |
| 56 | ppc_md.progress("mpc834x_itx_setup_arch()", 0); | 58 | ppc_md.progress("mpc834x_itx_setup_arch()", 0); |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index 8aa9a93e2aa2..10394b2d7e7a 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
| @@ -120,7 +120,9 @@ static int mpc834x_usb_cfg(void) | |||
| 120 | */ | 120 | */ |
| 121 | static void __init mpc834x_mds_setup_arch(void) | 121 | static void __init mpc834x_mds_setup_arch(void) |
| 122 | { | 122 | { |
| 123 | #ifdef CONFIG_PCI | ||
| 123 | struct device_node *np; | 124 | struct device_node *np; |
| 125 | #endif | ||
| 124 | 126 | ||
| 125 | if (ppc_md.progress) | 127 | if (ppc_md.progress) |
| 126 | ppc_md.progress("mpc834x_mds_setup_arch()", 0); | 128 | ppc_md.progress("mpc834x_mds_setup_arch()", 0); |
