aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAnton Vorontsov <cbouatmailru@gmail.com>2010-10-01 09:22:37 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 13:20:08 -0400
commit288e9feb51f428377d486e18a107c144554e5e40 (patch)
tree44bec73573b868620c60efbf6ce4654af2660669 /drivers/serial
parent99793c660c811309ae4ca94cc9cf1c2f34940197 (diff)
altera_uart: Fixup type usage of port flags
port->flags is of type upf_t, which corresponds to UPF_* flags. ASYNC_BOOT_AUTOCONF is an unsigned integer, which happen to be the same as UPF_BOOT_AUTOCONF. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> Acked-by: Tobias Klauser <tklauser@distanz.ch> Cc: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/altera_uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
index fbc8f8e4ffaa..dfc1ecc40abc 100644
--- a/drivers/serial/altera_uart.c
+++ b/drivers/serial/altera_uart.c
@@ -421,7 +421,7 @@ int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp)
421 port->iotype = SERIAL_IO_MEM; 421 port->iotype = SERIAL_IO_MEM;
422 port->irq = platp[i].irq; 422 port->irq = platp[i].irq;
423 port->uartclk = platp[i].uartclk; 423 port->uartclk = platp[i].uartclk;
424 port->flags = ASYNC_BOOT_AUTOCONF; 424 port->flags = UPF_BOOT_AUTOCONF;
425 port->ops = &altera_uart_ops; 425 port->ops = &altera_uart_ops;
426 port->private_data = platp; 426 port->private_data = platp;
427 } 427 }
@@ -551,7 +551,7 @@ static int __devinit altera_uart_probe(struct platform_device *pdev)
551 port->iotype = SERIAL_IO_MEM; 551 port->iotype = SERIAL_IO_MEM;
552 port->uartclk = platp->uartclk; 552 port->uartclk = platp->uartclk;
553 port->ops = &altera_uart_ops; 553 port->ops = &altera_uart_ops;
554 port->flags = ASYNC_BOOT_AUTOCONF; 554 port->flags = UPF_BOOT_AUTOCONF;
555 port->private_data = platp; 555 port->private_data = platp;
556 556
557 uart_add_one_port(&altera_uart_driver, port); 557 uart_add_one_port(&altera_uart_driver, port);