diff options
Diffstat (limited to 'recipes-kernel/linux/linux-imx-2.6.35.3/mxs-duart-use-ttyAMA-for-device-name.patch')
-rw-r--r-- | recipes-kernel/linux/linux-imx-2.6.35.3/mxs-duart-use-ttyAMA-for-device-name.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/mxs-duart-use-ttyAMA-for-device-name.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/mxs-duart-use-ttyAMA-for-device-name.patch new file mode 100644 index 00000000..6b89bb66 --- /dev/null +++ b/recipes-kernel/linux/linux-imx-2.6.35.3/mxs-duart-use-ttyAMA-for-device-name.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From e0b2222000d04b43e7892148dc9892c9375de939 Mon Sep 17 00:00:00 2001 | ||
2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | Date: Sat, 5 May 2012 15:04:24 -0300 | ||
4 | Subject: [PATCH] mxs-duart: use ttyAMA for device name | ||
5 | |||
6 | This allow to easy configuration of u-boot avoiding divergences | ||
7 | between Freescale's and mainline kernels. | ||
8 | |||
9 | Upstream-Status: Inapropriate [configuration] | ||
10 | |||
11 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
12 | --- | ||
13 | drivers/serial/mxs-duart.c | 6 +++--- | ||
14 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
15 | |||
16 | diff --git a/drivers/serial/mxs-duart.c b/drivers/serial/mxs-duart.c | ||
17 | index 64e5057..2ba0c33 100644 | ||
18 | --- a/drivers/serial/mxs-duart.c | ||
19 | +++ b/drivers/serial/mxs-duart.c | ||
20 | @@ -665,7 +665,7 @@ static int __init duart_console_setup(struct console *co, char *options) | ||
21 | } | ||
22 | |||
23 | static struct console duart_console = { | ||
24 | - .name = "ttyAM", | ||
25 | + .name = "ttyAMA", | ||
26 | .write = duart_console_write, | ||
27 | .device = uart_console_device, | ||
28 | .setup = duart_console_setup, | ||
29 | @@ -688,8 +688,8 @@ console_initcall(duart_console_init); | ||
30 | |||
31 | static struct uart_driver duart_drv = { | ||
32 | .owner = THIS_MODULE, | ||
33 | - .driver_name = "ttyAM", | ||
34 | - .dev_name = "ttyAM", | ||
35 | + .driver_name = "ttyAMA", | ||
36 | + .dev_name = "ttyAMA", | ||
37 | .major = SERIAL_DUART_MAJOR, | ||
38 | .minor = SERIAL_DUART_MINOR, | ||
39 | .nr = 1, | ||
40 | -- | ||
41 | 1.7.10 | ||
42 | |||