git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
arch
/
powerpc
/
kernel
/
udbg_16550.c
diff --git
a/arch/powerpc/kernel/udbg_16550.c
b/arch/powerpc/kernel/udbg_16550.c
index
2d17f2b
..
5d29dcc
100644
(file)
--- a/
arch/powerpc/kernel/udbg_16550.c
+++ b/
arch/powerpc/kernel/udbg_16550.c
@@
-8,6
+8,7
@@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
* 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>
#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)
{
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;
if (speed == 0)
speed = 9600;
-
- base_bauds = clock / 16;
dll = base_bauds / speed;
if (comport) {
dll = base_bauds / speed;
if (comport) {