]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc512x/fixed_sdram.c
Merge branch 'master' of git://git.denx.de/u-boot-spi
[u-boot] / arch / powerpc / cpu / mpc512x / fixed_sdram.c
index 6451ea9a4aa5abef6712cc1359ca2db9a052e33f..68c5f8a27b31097cef00a8c52dee40cd6063a2fb 100644 (file)
@@ -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 */