summaryrefslogtreecommitdiffstats
path: root/post/lib_powerpc/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_powerpc/load.c')
-rw-r--r--post/lib_powerpc/load.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/post/lib_powerpc/load.c b/post/lib_powerpc/load.c
index 98d437318c..49924f2edc 100644
--- a/post/lib_powerpc/load.c
+++ b/post/lib_powerpc/load.c
@@ -171,8 +171,7 @@ static struct cpu_post_load_s
1
},
};
-static unsigned int cpu_post_load_size =
- sizeof (cpu_post_load_table) / sizeof (struct cpu_post_load_s);
+static unsigned int cpu_post_load_size = ARRAY_SIZE(cpu_post_load_table);
int cpu_post_test_load (void)
{
OpenPOWER on IntegriCloud