Commit 16791963 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

m68knommu: use ARRAY_SIZE in ColdFire serial driver

Use ARRAY_SIZE macroto get maximum ports in ColdFire serial driver.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 540e3102
...@@ -434,7 +434,7 @@ static struct uart_ops mcf_uart_ops = { ...@@ -434,7 +434,7 @@ static struct uart_ops mcf_uart_ops = {
static struct mcf_uart mcf_ports[3]; 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) #if defined(CONFIG_SERIAL_MCF_CONSOLE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment