Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anton Vorontsov and committed by
Greg Kroah-Hartman
288e9feb 99793c66

+2 -2
+2 -2
drivers/serial/altera_uart.c
··· 421 421 port->iotype = SERIAL_IO_MEM; 422 422 port->irq = platp[i].irq; 423 423 port->uartclk = platp[i].uartclk; 424 - port->flags = ASYNC_BOOT_AUTOCONF; 424 + port->flags = UPF_BOOT_AUTOCONF; 425 425 port->ops = &altera_uart_ops; 426 426 port->private_data = platp; 427 427 } ··· 551 551 port->iotype = SERIAL_IO_MEM; 552 552 port->uartclk = platp->uartclk; 553 553 port->ops = &altera_uart_ops; 554 - port->flags = ASYNC_BOOT_AUTOCONF; 554 + port->flags = UPF_BOOT_AUTOCONF; 555 555 port->private_data = platp; 556 556 557 557 uart_add_one_port(&altera_uart_driver, port);