]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - post/cpu/ppc4xx/spr.c
post: use ARRAY_SIZE
[people/ms/u-boot.git] / post / cpu / ppc4xx / spr.c
index ecb87b53acc8d2ef8573671db46d19e5019fd0c2..3f5e96593a47a75afd95e13ae21dd19c325337e7 100644 (file)
@@ -69,7 +69,7 @@ static struct {
 
        /* Additional Special-Purpose Registers.
         * The values must match the initialization
-        * values from cpu/ppc4xx/start.S
+        * values from arch/powerpc/cpu/ppc4xx/start.S
         */
        {0x30,  "PID",          0x00000000,     0x00000000},
        {0x3a,  "CSRR0",        0x00000000,     0x00000000},
@@ -156,8 +156,7 @@ static struct {
        {0x3f3, "DBDR",         0x00000000,     0x00000000},
 };
 
-static int spr_test_list_size =
-               sizeof (spr_test_list) / sizeof (spr_test_list[0]);
+static int spr_test_list_size = ARRAY_SIZE(spr_test_list);
 
 int spr_post_test (int flags)
 {