arm/km: use ARRAY_SIZE macro
authorHolger Brunck <holger.brunck@keymile.com>
Fri, 25 May 2012 01:57:16 +0000 (01:57 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:30 +0000 (14:07 +0200)
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Gerlando Falauto <gerlando.falauto@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

board/keymile/km_arm/km_arm.c

index 9e9940c51f0bbd584780ec8376fec13481680045..c6c9a715164b9df064627289d75f32d46be3dbac 100644 (file)
@@ -410,7 +410,7 @@ const ulong patterns[]      = {     0x00000000,
                                0xFF00FF00,
                                0x0F0F0F0F,
                                0xF0F0F0F0};
-const ulong NBR_OF_PATTERNS = sizeof(patterns)/sizeof(*patterns);
+const ulong NBR_OF_PATTERNS = ARRAY_SIZE(patterns);
 const ulong OFFS_PATTERN    = 3;
 const ulong REPEAT_PATTERN  = 1000;