serial: at91, fix rs485 properties
authorJiri Slaby <jslaby@suse.cz>
Sun, 11 Oct 2015 13:22:44 +0000 (15:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:14:06 +0000 (21:14 -0700)
commit77bdec6f0face395ceb303ee7f2525b9dbbeb036
tree5eb11fddaf6703eb73c93a565735068293230b88
parentf148d6d7b79adb42a8e7fa95bf6be5b607015f26
serial: at91, fix rs485 properties

There is a misplaced bracket in atmel_init_rs485 which sets
rs485-rx-during-tx and rs485-enabled-at-boot-time only if
rs485-rts-delay is set in of.

This is clearly a bug, so fix it by moving the bracket to the proper
place.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Elen Song <elen.song@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c