]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/fsl_mcdmafec.c
Merge branch 'u-boot/master'
[karo-tx-uboot.git] / drivers / net / fsl_mcdmafec.c
index 1ad952d3a9a89ffb3e0a1a03337ac055099d711d..6391f9b32fb297de6ddc43cf7eb8fa041cf219db 100644 (file)
@@ -504,7 +504,7 @@ int mcdmafec_initialize(bd_t * bis)
        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,