omap24xx: Add bluetooth firmware
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 830-omap2-serial-fixes.patch
1 Index: linux-2.6.38-rc6/arch/arm/mach-omap2/serial.c
2 ===================================================================
3 --- linux-2.6.38-rc6.orig/arch/arm/mach-omap2/serial.c 2011-02-22 02:25:52.000000000 +0100
4 +++ linux-2.6.38-rc6/arch/arm/mach-omap2/serial.c 2011-02-26 22:17:38.356027926 +0100
5 @@ -655,6 +655,8 @@
6 }
7 #endif
8
9 +static struct omap_uart_state statebuf[4];
10 +
11 void __init omap_serial_early_init(void)
12 {
13 int i = 0;
14 @@ -670,9 +672,9 @@
15 if (!oh)
16 break;
17
18 - uart = kzalloc(sizeof(struct omap_uart_state), GFP_KERNEL);
19 - if (WARN_ON(!uart))
20 + if (WARN_ON(i >= ARRAY_SIZE(statebuf)))
21 return;
22 + uart = &statebuf[i];
23
24 uart->oh = oh;
25 uart->num = i++;
This page took 0.047572 seconds and 5 git commands to generate.