projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99793c6
)
altera_uart: Fixup type usage of port flags
author
Anton Vorontsov
<cbouatmailru@gmail.com>
Fri, 1 Oct 2010 13:22:37 +0000
(17:22 +0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 22 Oct 2010 17:20:08 +0000
(10:20 -0700)
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>
drivers/serial/altera_uart.c
patch
|
blob
|
history
diff --git
a/drivers/serial/altera_uart.c
b/drivers/serial/altera_uart.c
index fbc8f8e4ffaac6ac4e6260b05005aa8eb4dd6370..dfc1ecc40abcc4029bcba1c82e51ead2682afad1 100644
(file)
--- 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)
port->iotype = SERIAL_IO_MEM;
port->irq = platp[i].irq;
port->uartclk = platp[i].uartclk;
- port->flags =
ASYNC
_BOOT_AUTOCONF;
+ port->flags =
UPF
_BOOT_AUTOCONF;
port->ops = &altera_uart_ops;
port->private_data = platp;
}
@@
-551,7
+551,7
@@
static int __devinit altera_uart_probe(struct platform_device *pdev)
port->iotype = SERIAL_IO_MEM;
port->uartclk = platp->uartclk;
port->ops = &altera_uart_ops;
- port->flags =
ASYNC
_BOOT_AUTOCONF;
+ port->flags =
UPF
_BOOT_AUTOCONF;
port->private_data = platp;
uart_add_one_port(&altera_uart_driver, port);