linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / powerpc / kernel / udbg_16550.c
index 2d17f2b..5d29dcc 100644 (file)
@@ -8,6 +8,7 @@
  *      as published by the Free Software Foundation; either version
  *      2 of the License, or (at your option) any later version.
  */
+#include <linux/config.h>
 #include <linux/types.h>
 #include <asm/udbg.h>
 #include <asm/io.h>
@@ -81,14 +82,10 @@ static int udbg_550_getc(void)
 void udbg_init_uart(void __iomem *comport, unsigned int speed,
                    unsigned int clock)
 {
-       unsigned int dll, base_bauds;
+       unsigned int dll, base_bauds = clock / 16;
 
-       if (clock == 0)
-               clock = 1843200;
        if (speed == 0)
                speed = 9600;
-
-       base_bauds = clock / 16;
        dll = base_bauds / speed;
 
        if (comport) {