aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/altera_uart.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
index f1985aaf2cbc..fbc8f8e4ffaa 100644
--- a/drivers/serial/altera_uart.c
+++ b/drivers/serial/altera_uart.c
@@ -28,6 +28,8 @@
28#include <linux/altera_uart.h> 28#include <linux/altera_uart.h>
29 29
30#define DRV_NAME "altera_uart" 30#define DRV_NAME "altera_uart"
31#define SERIAL_ALTERA_MAJOR 204
32#define SERIAL_ALTERA_MINOR 213
31 33
32/* 34/*
33 * Altera UART register definitions according to the Nios UART datasheet: 35 * Altera UART register definitions according to the Nios UART datasheet:
@@ -471,7 +473,7 @@ static int __init altera_uart_console_setup(struct console *co, char *options)
471static struct uart_driver altera_uart_driver; 473static struct uart_driver altera_uart_driver;
472 474
473static struct console altera_uart_console = { 475static struct console altera_uart_console = {
474 .name = "ttyS", 476 .name = "ttyAL",
475 .write = altera_uart_console_write, 477 .write = altera_uart_console_write,
476 .device = uart_console_device, 478 .device = uart_console_device,
477 .setup = altera_uart_console_setup, 479 .setup = altera_uart_console_setup,
@@ -502,9 +504,9 @@ console_initcall(altera_uart_console_init);
502static struct uart_driver altera_uart_driver = { 504static struct uart_driver altera_uart_driver = {
503 .owner = THIS_MODULE, 505 .owner = THIS_MODULE,
504 .driver_name = DRV_NAME, 506 .driver_name = DRV_NAME,
505 .dev_name = "ttyS", 507 .dev_name = "ttyAL",
506 .major = TTY_MAJOR, 508 .major = SERIAL_ALTERA_MAJOR,
507 .minor = 64, 509 .minor = SERIAL_ALTERA_MINOR,
508 .nr = CONFIG_SERIAL_ALTERA_UART_MAXPORTS, 510 .nr = CONFIG_SERIAL_ALTERA_UART_MAXPORTS,
509 .cons = ALTERA_UART_CONSOLE, 511 .cons = ALTERA_UART_CONSOLE,
510}; 512};
@@ -603,3 +605,4 @@ MODULE_DESCRIPTION("Altera UART driver");
603MODULE_AUTHOR("Thomas Chou <thomas@wytron.com.tw>"); 605MODULE_AUTHOR("Thomas Chou <thomas@wytron.com.tw>");
604MODULE_LICENSE("GPL"); 606MODULE_LICENSE("GPL");
605MODULE_ALIAS("platform:" DRV_NAME); 607MODULE_ALIAS("platform:" DRV_NAME);
608MODULE_ALIAS_CHARDEV_MAJOR(SERIAL_ALTERA_MAJOR);