summaryrefslogtreecommitdiffstats
path: root/post/cpu/mpc8xx/spr.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/cpu/mpc8xx/spr.c')
-rw-r--r--post/cpu/mpc8xx/spr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/cpu/mpc8xx/spr.c b/post/cpu/mpc8xx/spr.c
index db84dbe504..4c1e2afbf6 100644
--- a/post/cpu/mpc8xx/spr.c
+++ b/post/cpu/mpc8xx/spr.c
@@ -108,8 +108,7 @@ static struct
{826, "MD_DBRAM1", 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)
{
OpenPOWER on IntegriCloud