projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540e310
)
m68knommu: use ARRAY_SIZE in ColdFire serial driver
author
Greg Ungerer
<
[email protected]
>
Tue, 5 Feb 2008 06:29:56 +0000
(22:29 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 5 Feb 2008 17:44:21 +0000
(09:44 -0800)
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]
>
drivers/serial/mcf.c
patch
|
blob
|
history
diff --git
a/drivers/serial/mcf.c
b/drivers/serial/mcf.c
index 051fcc2f5ba8a97509789f613de8470a0965faff..e76fc72c9b3610ab54dd2aec9b5814653e2257fe 100644
(file)
--- a/
drivers/serial/mcf.c
+++ b/
drivers/serial/mcf.c
@@
-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)