aboutsummaryrefslogtreecommitdiff
path: root/src/superio/smsc/smscsuperio
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/smsc/smscsuperio')
-rw-r--r--src/superio/smsc/smscsuperio/superio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/superio/smsc/smscsuperio/superio.c b/src/superio/smsc/smscsuperio/superio.c
index 0ae1818ceb..20e5cf662f 100644
--- a/src/superio/smsc/smscsuperio/superio.c
+++ b/src/superio/smsc/smscsuperio/superio.c
@@ -40,6 +40,7 @@
#include <console/console.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
+#include <stdlib.h>
#include "chip.h"
/* The following Super I/O chips are currently supported by this driver: */
@@ -66,9 +67,6 @@ static int first_time = 1;
static uint8_t superio_id = 0;
static uint8_t superio_rev = 0;
-/* TODO: Move somewhere else, but where? */
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
-
/**
* A list of all possible logical devices which may be supported by at least
* one of the Super I/O chips. These values are used as index into the