Commit e9a137cb authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

m68knommu: fix broken use of BUAD_TABLE_SIZE in 68328serial driver

Commit 8b505ca8 ("serial: 68328serial.c:
remove BAUD_TABLE_SIZE macro") misses one use of BAUD_TABLE_SIZE.  So the
resulting 68328serial.c does not compile:

drivers/serial/68328serial.c: In function `m68328_console_setup':
drivers/serial/68328serial.c:1439: error: `BAUD_TABLE_SIZE' undeclared (first use in this function)
drivers/serial/68328serial.c:1439: error: (Each undeclared identifier is reported only once
drivers/serial/68328serial.c:1439: error: for each function it appears in.)

Fix that last use of it.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Cc: Thiago Farina <tfransosi@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 69dcf3db
...@@ -1437,7 +1437,7 @@ int m68328_console_setup(struct console *cp, char *arg) ...@@ -1437,7 +1437,7 @@ int m68328_console_setup(struct console *cp, char *arg)
for (i = 0; i < ARRAY_SIZE(baud_table); i++) for (i = 0; i < ARRAY_SIZE(baud_table); i++)
if (baud_table[i] == n) if (baud_table[i] == n)
break; break;
if (i < BAUD_TABLE_SIZE) { if (i < ARRAY_SIZE(baud_table)) {
m68328_console_baud = n; m68328_console_baud = n;
m68328_console_cbaud = 0; m68328_console_cbaud = 0;
if (i > 15) { if (i > 15) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment