aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/mcf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/mcf.c')
-rw-r--r--drivers/serial/mcf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/mcf.c b/drivers/serial/mcf.c
index 051fcc2f5ba8..e76fc72c9b36 100644
--- a/drivers/serial/mcf.c
+++ b/drivers/serial/mcf.c
@@ -434,7 +434,7 @@ static struct uart_ops mcf_uart_ops = {
434 434
435static struct mcf_uart mcf_ports[3]; 435static struct mcf_uart mcf_ports[3];
436 436
437#define MCF_MAXPORTS (sizeof(mcf_ports) / sizeof(struct mcf_uart)) 437#define MCF_MAXPORTS ARRAY_SIZE(mcf_ports)
438 438
439/****************************************************************************/ 439/****************************************************************************/
440#if defined(CONFIG_SERIAL_MCF_CONSOLE) 440#if defined(CONFIG_SERIAL_MCF_CONSOLE)