Skip to content

Commit

Permalink
m68knommu: use ARRAY_SIZE in ColdFire serial driver
Browse files Browse the repository at this point in the history
Use ARRAY_SIZE macroto get maximum ports in ColdFire serial driver.

Signed-off-by: Greg Ungerer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Feb 5, 2008
1 parent 540e310 commit 1679196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/mcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1679196

Please sign in to comment.