浏览代码

Fix 4xx build issue

Building for 4xx doesn't work since commit 4dbdb768:

In file included from 4xx_pcie.c:28:
include/asm/processor.h:971: error: expected ')' before 'ver'
make[1]: *** [4xx_pcie.o] Error 1

This patch fixes the problem.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Anatolij Gustschin 17 年之前
父节点
当前提交
96026d42fa
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      cpu/mpc85xx/cpu.c
  2. 1 1
      include/asm-ppc/processor.h

+ 1 - 1
cpu/mpc85xx/cpu.c

@@ -59,7 +59,7 @@ struct cpu_type cpu_type_list [] = {
 	CPU_TYPE_ENTRY(8572, 8572_E),
 	CPU_TYPE_ENTRY(8572, 8572_E),
 };
 };
 
 
-struct cpu_type *identify_cpu(uint ver)
+struct cpu_type *identify_cpu(u32 ver)
 {
 {
 	int i;
 	int i;
 	for (i = 0; i < ARRAY_SIZE(cpu_type_list); i++)
 	for (i = 0; i < ARRAY_SIZE(cpu_type_list); i++)

+ 1 - 1
include/asm-ppc/processor.h

@@ -968,7 +968,7 @@ struct cpu_type {
 	u32 soc_ver;
 	u32 soc_ver;
 };
 };
 
 
-struct cpu_type *identify_cpu(uint ver);
+struct cpu_type *identify_cpu(u32 ver);
 
 
 #define CPU_TYPE_ENTRY(n, v) \
 #define CPU_TYPE_ENTRY(n, v) \
 	{ .name = #n, .soc_ver = SVR_##v, }
 	{ .name = #n, .soc_ver = SVR_##v, }