浏览代码

ppc4xx: Remove compilation warning "pci_async_enabled defined but not used"

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese 16 年之前
父节点
当前提交
20b3c4b528
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      cpu/ppc4xx/cpu.c

+ 2 - 0
cpu/ppc4xx/cpu.c

@@ -54,6 +54,7 @@ int __get_cpu_num(void)
 }
 int get_cpu_num(void) __attribute__((weak, alias("__get_cpu_num")));
 
+#if defined(CONFIG_PCI)
 #if defined(CONFIG_405GP) || \
     defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
@@ -76,6 +77,7 @@ static int pci_async_enabled(void)
 #endif
 }
 #endif
+#endif /* CONFIG_PCI */
 
 #if defined(CONFIG_PCI) && !defined(CONFIG_IOP480) && \
     !defined(CONFIG_405) && !defined(CONFIG_405EX)