From: Greg Ungerer Date: Thu, 20 May 2010 01:12:38 +0000 (+1000) Subject: m68knommu: fix broken use of BUAD_TABLE_SIZE in 68328serial driver X-Git-Tag: v2.6.35-rc1~267^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fcce0baea6628af935b1b485d6606a5a377a052;p=profile%2Fivi%2Fkernel-x86-ivi.git m68knommu: fix broken use of BUAD_TABLE_SIZE in 68328serial driver Commit 8b505ca8e2600eb9e7dd2d6b2682a81717671374 ("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: Greg Ungerer Cc: --- diff --git a/drivers/serial/68328serial.c b/drivers/serial/68328serial.c index 78ed24b..3046386 100644 --- a/drivers/serial/68328serial.c +++ b/drivers/serial/68328serial.c @@ -1437,7 +1437,7 @@ int m68328_console_setup(struct console *cp, char *arg) for (i = 0; i < ARRAY_SIZE(baud_table); i++) if (baud_table[i] == n) break; - if (i < BAUD_TABLE_SIZE) { + if (i < ARRAY_SIZE(baud_table)) { m68328_console_baud = n; m68328_console_cbaud = 0; if (i > 15) {