summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-2.6.29/micro2440/0009-MINI2440-Rename-the-SoC-tty-names.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-04-15 14:59:40 -0700
committerKhem Raj <raj.khem@gmail.com>2009-04-15 14:59:40 -0700
commita91ef39c62f371125a92098d4fbd45056122c384 (patch)
tree2141ea671053b805f80348ce18bba970fca36e1e /recipes/linux/linux-2.6.29/micro2440/0009-MINI2440-Rename-the-SoC-tty-names.patch
parent3189734f8d6b1287c757cb9664d7e045ab3c57d7 (diff)
parentabf92f42db81d9049e8e517354e7f3dd5ecb5f77 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/linux/linux-2.6.29/micro2440/0009-MINI2440-Rename-the-SoC-tty-names.patch')
-rw-r--r--recipes/linux/linux-2.6.29/micro2440/0009-MINI2440-Rename-the-SoC-tty-names.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/linux/linux-2.6.29/micro2440/0009-MINI2440-Rename-the-SoC-tty-names.patch b/recipes/linux/linux-2.6.29/micro2440/0009-MINI2440-Rename-the-SoC-tty-names.patch
new file mode 100644
index 0000000000..9e9f6067cd
--- /dev/null
+++ b/recipes/linux/linux-2.6.29/micro2440/0009-MINI2440-Rename-the-SoC-tty-names.patch
@@ -0,0 +1,35 @@
+From 356642f304af65f33a3ae756eff93bc91974ccce Mon Sep 17 00:00:00 2001
+From: Michel Pollet <buserror@gmail.com>
+Date: Sat, 14 Mar 2009 10:39:49 +0000
+Subject: [PATCH] MINI2440: Rename the SoC tty names.
+
+The 24c2410 default serial ports are created with non-
+standard names, that confuses most embedded distros and
+is also inconsistent with the internal name used for the
+console= parameter. This patch makes the driver use
+the standardized names.
+---
+ drivers/serial/samsung.c | 6 ++++++
+ 1 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/serial/samsung.c b/drivers/serial/samsung.c
+index 41ac948..e85a6db 100644
+--- a/drivers/serial/samsung.c
++++ b/drivers/serial/samsung.c
+@@ -823,7 +823,13 @@ static struct uart_ops s3c24xx_serial_ops = {
+
+ static struct uart_driver s3c24xx_uart_drv = {
+ .owner = THIS_MODULE,
++#ifdef CONFIG_MACH_MINI2440
++ /* this was probably meant to be there in the first place, since the #define exists
++ * having non-standard names like "s3c2410_serial" is a royal pain for every distro */
++ .dev_name = S3C24XX_SERIAL_NAME,
++#else
+ .dev_name = "s3c2410_serial",
++#endif
+ .nr = CONFIG_SERIAL_SAMSUNG_UARTS,
+ .cons = S3C24XX_SERIAL_CONSOLE,
+ .driver_name = S3C24XX_SERIAL_NAME,
+--
+1.5.6.3
+