From: Kumar Gala Allows a platform to initialize serial_state completely from gen550_init and no longer requires it to define SERIAL_PORT_DFNS. Signed-off-by: Kumar Gala Signed-off-by: Andrew Morton --- 25-akpm/arch/ppc/syslib/gen550_dbg.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -puN arch/ppc/syslib/gen550_dbg.c~ppc32-allow-usage-of-gen550-on-platforms-that-do-not-define arch/ppc/syslib/gen550_dbg.c --- 25/arch/ppc/syslib/gen550_dbg.c~ppc32-allow-usage-of-gen550-on-platforms-that-do-not-define 2005-01-22 23:26:22.525569680 -0800 +++ 25-akpm/arch/ppc/syslib/gen550_dbg.c 2005-01-22 23:26:22.528569224 -0800 @@ -29,6 +29,11 @@ #define SERIAL_BAUD 9600 +/* SERIAL_PORT_DFNS is defined in */ +#ifndef SERIAL_PORT_DFNS +#define SERIAL_PORT_DFNS +#endif + static struct serial_state rs_table[RS_TABLE_SIZE] = { SERIAL_PORT_DFNS /* defined in */ }; @@ -154,6 +159,7 @@ gen550_init(int i, struct uart_port *ser rs_table[i].port = serial_req->iobase; rs_table[i].iomem_base = serial_req->membase; rs_table[i].iomem_reg_shift = serial_req->regshift; + rs_table[i].baud_base = serial_req->uartclk ? serial_req->uartclk / 16 : BASE_BAUD; } #ifdef CONFIG_SERIAL_TEXT_DEBUG _