From 55e6ebaf6a90102bfb09e467d768cf861a340e5f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 27 Oct 2007 20:05:21 +0000 Subject: Move ARRAY_SIZE to stdlib.h to make it available to all code (trivial). Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2901 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/superio/smsc/smscsuperio/superio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/superio/smsc') 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 #include #include +#include #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 -- cgit v1.2.3