From: Greg Ungerer Date: Tue, 5 Feb 2008 06:29:56 +0000 (-0800) Subject: m68knommu: use ARRAY_SIZE in ColdFire serial driver X-Git-Tag: v2.6.25-rc1~904 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=16791963ff7dd6a108251f5fa4b273cf1ffe531f;p=linux-2.6-omap-h63xx.git m68knommu: use ARRAY_SIZE in ColdFire serial driver Use ARRAY_SIZE macroto get maximum ports in ColdFire serial driver. Signed-off-by: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/mcf.c b/drivers/serial/mcf.c index 051fcc2f5ba..e76fc72c9b3 100644 --- a/drivers/serial/mcf.c +++ b/drivers/serial/mcf.c @@ -434,7 +434,7 @@ static struct uart_ops mcf_uart_ops = { static struct mcf_uart mcf_ports[3]; -#define MCF_MAXPORTS (sizeof(mcf_ports) / sizeof(struct mcf_uart)) +#define MCF_MAXPORTS ARRAY_SIZE(mcf_ports) /****************************************************************************/ #if defined(CONFIG_SERIAL_MCF_CONSOLE)