From 47030830ef1c130a774d10f29fb1689ab882e7ae Mon Sep 17 00:00:00 2001 From: Michel Pollet 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 file changed, 6 insertions(+) diff --git a/drivers/serial/samsung.c b/drivers/serial/samsung.c index 1523e8d9ae7..fac5dc23cfa 100644 --- a/drivers/serial/samsung.c +++ b/drivers/serial/samsung.c @@ -878,7 +878,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, -- 2.11.4.GIT