]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/serial/68328serial.c
m68knommu: fix broken use of BUAD_TABLE_SIZE in 68328serial driver
[net-next-2.6.git] / drivers / serial / 68328serial.c
index 78ed24bb6a35d4eb09f9a4f90939f5b4f7151d20..30463862603b18e819ddcd69ead819dee18f0d44 100644 (file)
@@ -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) {