aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/patches-2.6.38/830-omap2-serial-fixes.patch
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2011-02-26 23:52:18 +0000
committerMichael Büsch <mb@bu3sch.de>2011-02-26 23:52:18 +0000
commitc3f81206b7253f69e461ba1821b774bd74bdc053 (patch)
tree7e5ae092f3e4b4f251f6c91824d6a3dc18a542d9 /target/linux/omap24xx/patches-2.6.38/830-omap2-serial-fixes.patch
parentc076125a5446f5f948dab51bcb40a157311b4e4c (diff)
downloadmaster-187ad058-c3f81206b7253f69e461ba1821b774bd74bdc053.tar.gz
master-187ad058-c3f81206b7253f69e461ba1821b774bd74bdc053.tar.bz2
master-187ad058-c3f81206b7253f69e461ba1821b774bd74bdc053.zip
omap24xx: Add 2.6.38 files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25746 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap24xx/patches-2.6.38/830-omap2-serial-fixes.patch')
-rw-r--r--target/linux/omap24xx/patches-2.6.38/830-omap2-serial-fixes.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-2.6.38/830-omap2-serial-fixes.patch b/target/linux/omap24xx/patches-2.6.38/830-omap2-serial-fixes.patch
new file mode 100644
index 0000000000..2a29a8e47f
--- /dev/null
+++ b/target/linux/omap24xx/patches-2.6.38/830-omap2-serial-fixes.patch
@@ -0,0 +1,25 @@
+Index: linux-2.6.38-rc6/arch/arm/mach-omap2/serial.c
+===================================================================
+--- linux-2.6.38-rc6.orig/arch/arm/mach-omap2/serial.c 2011-02-22 02:25:52.000000000 +0100
++++ linux-2.6.38-rc6/arch/arm/mach-omap2/serial.c 2011-02-26 22:17:38.356027926 +0100
+@@ -655,6 +655,8 @@
+ }
+ #endif
+
++static struct omap_uart_state statebuf[4];
++
+ void __init omap_serial_early_init(void)
+ {
+ int i = 0;
+@@ -670,9 +672,9 @@
+ 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++;