source: trunk/target/linux/omap24xx/patches-2.6.38/830-omap2-serial-fixes.patch @ 25939

Last change on this file since 25939 was 25939, checked in by mb, 6 years ago

n810: Add workaround for bluetooth IRQ issue

File size: 767 bytes
  • arch/arm/mach-omap2/serial.c

    old new static void serial_out_override(struct u 
    660660} 
    661661#endif 
    662662 
     663static struct omap_uart_state statebuf[4]; 
     664 
    663665void __init omap_serial_early_init(void) 
    664666{ 
    665667        int i = 0; 
    void __init omap_serial_early_init(void) 
    675677                if (!oh) 
    676678                        break; 
    677679 
    678                 uart = kzalloc(sizeof(struct omap_uart_state), GFP_KERNEL); 
    679                 if (WARN_ON(!uart)) 
     680                if (WARN_ON(i >= ARRAY_SIZE(statebuf))) 
    680681                        return; 
     682                uart = &statebuf[i]; 
    681683 
    682684                uart->oh = oh; 
    683685                uart->num = i++; 
Note: See TracBrowser for help on using the repository browser.