Commit 288e9feb authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Greg Kroah-Hartman

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: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
Acked-by: default avatarTobias Klauser <tklauser@distanz.ch>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 99793c66
...@@ -421,7 +421,7 @@ int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp) ...@@ -421,7 +421,7 @@ int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp)
port->iotype = SERIAL_IO_MEM; port->iotype = SERIAL_IO_MEM;
port->irq = platp[i].irq; port->irq = platp[i].irq;
port->uartclk = platp[i].uartclk; port->uartclk = platp[i].uartclk;
port->flags = ASYNC_BOOT_AUTOCONF; port->flags = UPF_BOOT_AUTOCONF;
port->ops = &altera_uart_ops; port->ops = &altera_uart_ops;
port->private_data = platp; port->private_data = platp;
} }
...@@ -551,7 +551,7 @@ static int __devinit altera_uart_probe(struct platform_device *pdev) ...@@ -551,7 +551,7 @@ static int __devinit altera_uart_probe(struct platform_device *pdev)
port->iotype = SERIAL_IO_MEM; port->iotype = SERIAL_IO_MEM;
port->uartclk = platp->uartclk; port->uartclk = platp->uartclk;
port->ops = &altera_uart_ops; port->ops = &altera_uart_ops;
port->flags = ASYNC_BOOT_AUTOCONF; port->flags = UPF_BOOT_AUTOCONF;
port->private_data = platp; port->private_data = platp;
uart_add_one_port(&altera_uart_driver, port); uart_add_one_port(&altera_uart_driver, port);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment