Skip to content
Snippets Groups Projects
Commit 16791963 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment