pantheon: define CONFIG_SYS_CACHELINE_SIZE
[oweals/u-boot.git] / post / lib_powerpc / cmpi.c
index 1a2fc3d094bd5ff70d9d796f84d8c5b04253f693..4160a2aaa1c07409b56f5656545b98b588f2c624 100644 (file)
@@ -95,8 +95,7 @@ static struct cpu_post_cmpi_s
        0x04
     },
 };
-static unsigned int cpu_post_cmpi_size =
-    sizeof (cpu_post_cmpi_table) / sizeof (struct cpu_post_cmpi_s);
+static unsigned int cpu_post_cmpi_size = ARRAY_SIZE(cpu_post_cmpi_table);
 
 int cpu_post_test_cmpi (void)
 {