aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/atmel_serial.c6
-rw-r--r--include/linux/serial_core.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c
index 7397d5df6d9f..2c5b72ccc4be 100644
--- a/drivers/serial/atmel_serial.c
+++ b/drivers/serial/atmel_serial.c
@@ -581,7 +581,7 @@ static void atmel_set_termios(struct uart_port *port, struct termios * termios,
581 */ 581 */
582static const char *atmel_type(struct uart_port *port) 582static const char *atmel_type(struct uart_port *port)
583{ 583{
584 return (port->type == PORT_AT91) ? "ATMEL_SERIAL" : NULL; 584 return (port->type == PORT_ATMEL) ? "ATMEL_SERIAL" : NULL;
585} 585}
586 586
587/* 587/*
@@ -628,7 +628,7 @@ static int atmel_request_port(struct uart_port *port)
628static void atmel_config_port(struct uart_port *port, int flags) 628static void atmel_config_port(struct uart_port *port, int flags)
629{ 629{
630 if (flags & UART_CONFIG_TYPE) { 630 if (flags & UART_CONFIG_TYPE) {
631 port->type = PORT_AT91; 631 port->type = PORT_ATMEL;
632 atmel_request_port(port); 632 atmel_request_port(port);
633 } 633 }
634} 634}
@@ -639,7 +639,7 @@ static void atmel_config_port(struct uart_port *port, int flags)
639static int atmel_verify_port(struct uart_port *port, struct serial_struct *ser) 639static int atmel_verify_port(struct uart_port *port, struct serial_struct *ser)
640{ 640{
641 int ret = 0; 641 int ret = 0;
642 if (ser->type != PORT_UNKNOWN && ser->type != PORT_AT91) 642 if (ser->type != PORT_UNKNOWN && ser->type != PORT_ATMEL)
643 ret = -EINVAL; 643 ret = -EINVAL;
644 if (port->irq != ser->irq) 644 if (port->irq != ser->irq)
645 ret = -EINVAL; 645 ret = -EINVAL;
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index de2e68159d96..b661c19f3f72 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -67,8 +67,8 @@
67/* Parisc type numbers. */ 67/* Parisc type numbers. */
68#define PORT_MUX 48 68#define PORT_MUX 48
69 69
70/* Atmel AT91xxx SoC */ 70/* Atmel AT91 / AT32 SoC */
71#define PORT_AT91 49 71#define PORT_ATMEL 49
72 72
73/* Macintosh Zilog type numbers */ 73/* Macintosh Zilog type numbers */
74#define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */ 74#define PORT_MAC_ZILOG 50 /* m68k : not yet implemented */