diff options
author | James <> | 2013-03-17 12:16:37 +0000 |
---|---|---|
committer | James <> | 2013-03-17 12:16:37 +0000 |
commit | 27b76ab0671089c47506615a796a261e993896a7 (patch) | |
tree | 61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/omap24xx/patches-3.3/.svn/text-base/830-omap2-serial-fixes.patch.svn-base | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'target/linux/omap24xx/patches-3.3/.svn/text-base/830-omap2-serial-fixes.patch.svn-base')
-rw-r--r-- | target/linux/omap24xx/patches-3.3/.svn/text-base/830-omap2-serial-fixes.patch.svn-base | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-3.3/.svn/text-base/830-omap2-serial-fixes.patch.svn-base b/target/linux/omap24xx/patches-3.3/.svn/text-base/830-omap2-serial-fixes.patch.svn-base new file mode 100644 index 0000000..a80ee69 --- /dev/null +++ b/target/linux/omap24xx/patches-3.3/.svn/text-base/830-omap2-serial-fixes.patch.svn-base @@ -0,0 +1,23 @@ +--- a/arch/arm/mach-omap2/serial.c ++++ b/arch/arm/mach-omap2/serial.c +@@ -258,6 +258,8 @@ char *cmdline_find_option(char *str) + return strstr(saved_command_line, str); + } + ++static struct omap_uart_state statebuf[4]; ++ + static int __init omap_serial_early_init(void) + { + do { +@@ -272,9 +274,9 @@ static int __init omap_serial_early_init + if (!oh) + break; + +- uart = kzalloc(sizeof(struct omap_uart_state), GFP_KERNEL); +- if (WARN_ON(!uart)) ++ if (WARN_ON(num_uarts >= ARRAY_SIZE(statebuf))) + return -ENODEV; ++ uart = &statebuf[num_uarts]; + + uart->oh = oh; + uart->num = num_uarts++; |