projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: macb: get DMA bus width from design config register
[oweals/u-boot.git]
/
drivers
/
net
/
fsl_mcdmafec.c
diff --git
a/drivers/net/fsl_mcdmafec.c
b/drivers/net/fsl_mcdmafec.c
index 1ad952d3a9a89ffb3e0a1a03337ac055099d711d..6391f9b32fb297de6ddc43cf7eb8fa041cf219db 100644
(file)
--- a/
drivers/net/fsl_mcdmafec.c
+++ b/
drivers/net/fsl_mcdmafec.c
@@
-504,7
+504,7
@@
int mcdmafec_initialize(bd_t * bis)
u32 tmp = CONFIG_SYS_INTSRAM + 0x2000;
#endif
u32 tmp = CONFIG_SYS_INTSRAM + 0x2000;
#endif
- for (i = 0; i <
sizeof(fec_info) / sizeof(fec_info[0]
); i++) {
+ for (i = 0; i <
ARRAY_SIZE(fec_info
); i++) {
dev =
(struct eth_device *)memalign(CONFIG_SYS_CACHELINE_SIZE,
dev =
(struct eth_device *)memalign(CONFIG_SYS_CACHELINE_SIZE,