2011-03-07 18:57:15 +02:00
|
|
|
Index: linux-2.6.38-rc7/arch/arm/mach-omap2/serial.c
|
2011-02-27 01:52:18 +02:00
|
|
|
===================================================================
|
2011-03-07 18:57:15 +02:00
|
|
|
--- linux-2.6.38-rc7.orig/arch/arm/mach-omap2/serial.c 2011-03-07 17:24:16.786259530 +0100
|
|
|
|
+++ linux-2.6.38-rc7/arch/arm/mach-omap2/serial.c 2011-03-07 17:24:18.951998600 +0100
|
|
|
|
@@ -660,6 +660,8 @@ static void serial_out_override(struct u
|
2011-02-27 01:52:18 +02:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+static struct omap_uart_state statebuf[4];
|
|
|
|
+
|
|
|
|
void __init omap_serial_early_init(void)
|
|
|
|
{
|
|
|
|
int i = 0;
|
2011-03-07 18:57:15 +02:00
|
|
|
@@ -675,9 +677,9 @@ void __init omap_serial_early_init(void)
|
2011-02-27 01:52:18 +02:00
|
|
|
if (!oh)
|
|
|
|
break;
|
|
|
|
|
|
|
|
- uart = kzalloc(sizeof(struct omap_uart_state), GFP_KERNEL);
|
|
|
|
- if (WARN_ON(!uart))
|
|
|
|
+ if (WARN_ON(i >= ARRAY_SIZE(statebuf)))
|
|
|
|
return;
|
|
|
|
+ uart = &statebuf[i];
|
|
|
|
|
|
|
|
uart->oh = oh;
|
|
|
|
uart->num = i++;
|