summaryrefslogtreecommitdiff
path: root/src/mainboard/via/epia-m/auto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/via/epia-m/auto.c')
-rw-r--r--src/mainboard/via/epia-m/auto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/via/epia-m/auto.c b/src/mainboard/via/epia-m/auto.c
index c82be2e111..1f444d61b7 100644
--- a/src/mainboard/via/epia-m/auto.c
+++ b/src/mainboard/via/epia-m/auto.c
@@ -10,6 +10,7 @@
#include <device/pnp_def.h>
#include <arch/romcc_io.h>
#include <arch/hlt.h>
+#include <stdlib.h>
#include "pc80/serial.c"
#include "arch/i386/lib/console.c"
#include "ram/ramtest.c"
@@ -146,7 +147,7 @@ static void main(unsigned long bist)
#endif
};
int i;
- for(i = 0; i < sizeof(check_addrs)/sizeof(check_addrs[0]); i++) {
+ for(i = 0; i < ARRAY_SIZE(check_addrs); i++) {
ram_check(check_addrs[i].lo, check_addrs[i].hi);
}
#endif