projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arch/powerpc: Simplify some calculations using ARRAY_SIZE() macro.
[platform/kernel/u-boot.git]
/
arch
/
powerpc
/
cpu
/
mpc512x
/
fixed_sdram.c
diff --git
a/arch/powerpc/cpu/mpc512x/fixed_sdram.c
b/arch/powerpc/cpu/mpc512x/fixed_sdram.c
index
6451ea9
..
68c5f8a
100644
(file)
--- a/
arch/powerpc/cpu/mpc512x/fixed_sdram.c
+++ b/
arch/powerpc/cpu/mpc512x/fixed_sdram.c
@@
-70,7
+70,7
@@
long int fixed_sdram(ddr512x_config_t *mddrc_config,
mddrc_config = &default_mddrc_config;
if (dram_init_seq == NULL) {
dram_init_seq = default_init_seq;
- seq_sz =
sizeof(default_init_seq)/sizeof(u32
);
+ seq_sz =
ARRAY_SIZE(default_init_seq
);
}
/* Initialize IO Control */