summaryrefslogtreecommitdiff
path: root/src/mainboard/dell/s1850/auto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/dell/s1850/auto.c')
-rw-r--r--src/mainboard/dell/s1850/auto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/dell/s1850/auto.c b/src/mainboard/dell/s1850/auto.c
index 78406138cb..627acb4ca5 100644
--- a/src/mainboard/dell/s1850/auto.c
+++ b/src/mainboard/dell/s1850/auto.c
@@ -5,6 +5,7 @@
#include <device/pnp_def.h>
#include <arch/romcc_io.h>
#include <cpu/x86/lapic.h>
+#include <stdlib.h>
#include "option_table.h"
#include "pc80/mc146818rtc_early.c"
#include "pc80/serial.c"
@@ -139,7 +140,7 @@ static void main(unsigned long bist)
// dump_ipmi_registers();
mainboard_set_e7520_leds();
// memreset_setup();
- sdram_initialize(sizeof(mch)/sizeof(mch[0]), mch);
+ sdram_initialize(ARRAY_SIZE(mch), mch);
#if 0
dump_pci_devices();
#endif