diff options
author | Greg Ungerer <gerg@snapgear.com> | 2008-02-05 01:29:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:21 -0500 |
commit | 16791963ff7dd6a108251f5fa4b273cf1ffe531f (patch) | |
tree | 547938c67fb9c81d1b2f11f33166c7dd9b7e2543 /drivers/serial | |
parent | 540e3102f75dca9c5e614905527599de18294cc8 (diff) |
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>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/mcf.c | 2 |
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 | ||
435 | static struct mcf_uart mcf_ports[3]; | 435 | static 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) |