mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
m68knommu: use ARRAY_SIZE in ColdFire serial driver
Use ARRAY_SIZE macroto get maximum ports in ColdFire serial driver. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
540e3102f7
commit
16791963ff
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue