소스 검색

[POWERPC] 83xx: Suppress warning when CONFIG_ options aren't defined

Suppress warning when CONFIG_PCI & CONFIG_QUICC_ENGINE is not defined

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Kumar Gala 18 년 전
부모
커밋
c9ec87e512
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      arch/powerpc/platforms/83xx/mpc832x_rdb.c

+ 2 - 0
arch/powerpc/platforms/83xx/mpc832x_rdb.c

@@ -44,7 +44,9 @@ unsigned long isa_mem_base = 0;
  */
 static void __init mpc832x_rdb_setup_arch(void)
 {
+#if defined(CONFIG_PCI) || defined(CONFIG_QUICC_ENGINE)
 	struct device_node *np;
+#endif
 
 	if (ppc_md.progress)
 		ppc_md.progress("mpc832x_rdb_setup_arch()", 0);