From: Ricardo Ribalda Delgado Date: Thu, 6 Nov 2014 08:22:51 +0000 (+0100) Subject: serial/8250: Copy RS485 fields to serial_core X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=46c55b4bb9b55b7b09b6879668a209a5657814b3;p=deliverable%2Flinux.git serial/8250: Copy RS485 fields to serial_core Initialize recently added rs485 fields on serial_core Reviewed-by: Alan Cox Cc: Jiri Slaby Cc: Sebastian Andrzej Siewior Cc: Alan Cox Cc: Tony Lindgren Cc: Peter Hurley Cc: Yoshihiro YUNOMAE Cc: Andy Shevchenko Cc: Ingo Molnar Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index 25eb8e93615d..3f2c6576ab4e 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c @@ -3619,6 +3619,8 @@ int serial8250_register_8250_port(struct uart_8250_port *up) uart->rs485 = up->rs485; uart->port.throttle = up->port.throttle; uart->port.unthrottle = up->port.unthrottle; + uart->port.rs485_config = up->port.rs485_config; + uart->port.rs485 = up->port.rs485; /* Take tx_loadsz from fifosize if it wasn't set separately */ if (uart->port.fifosize && !uart->tx_loadsz)