mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] serial: Rename PORT_AT91 -> PORT_ATMEL
The at91_serial driver can be used with both AT32 and AT91 devices from Atmel and has therefore been renamed atmel_serial. The only thing left is to rename PORT_AT91 PORT_ATMEL. Signed-off-by: Haavard Skinnemoen <[email protected]> Acked-by: Andrew Victor <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7192f92c79
commit
9ab4f88b7f
2 changed files with 5 additions and 5 deletions
|
|
@ -581,7 +581,7 @@ static void atmel_set_termios(struct uart_port *port, struct termios * termios,
|
|||
*/
|
||||
static const char *atmel_type(struct uart_port *port)
|
||||
{
|
||||
return (port->type == PORT_AT91) ? "ATMEL_SERIAL" : NULL;
|
||||
return (port->type == PORT_ATMEL) ? "ATMEL_SERIAL" : NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -628,7 +628,7 @@ static int atmel_request_port(struct uart_port *port)
|
|||
static void atmel_config_port(struct uart_port *port, int flags)
|
||||
{
|
||||
if (flags & UART_CONFIG_TYPE) {
|
||||
port->type = PORT_AT91;
|
||||
port->type = PORT_ATMEL;
|
||||
atmel_request_port(port);
|
||||
}
|
||||
}
|
||||
|
|
@ -639,7 +639,7 @@ static void atmel_config_port(struct uart_port *port, int flags)
|
|||
static int atmel_verify_port(struct uart_port *port, struct serial_struct *ser)
|
||||
{
|
||||
int ret = 0;
|
||||
if (ser->type != PORT_UNKNOWN && ser->type != PORT_AT91)
|
||||
if (ser->type != PORT_UNKNOWN && ser->type != PORT_ATMEL)
|
||||
ret = -EINVAL;
|
||||
if (port->irq != ser->irq)
|
||||
ret = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue