MINI2440: Rename the SoC tty names.
authorMichel Pollet <buserror@gmail.com>
Sat, 14 Mar 2009 10:39:49 +0000 (14 10:39 +0000)
committerMichel Pollet <buserror@gmail.com>
Tue, 24 Nov 2009 22:38:45 +0000 (24 22:38 +0000)
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

index 1523e8d..fac5dc2 100644 (file)
@@ -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,