]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: fix bogus dev_err
authorphil eichinger <phil@zankapfel.net>
Mon, 19 Feb 2018 09:24:15 +0000 (10:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Feb 2018 12:48:21 +0000 (13:48 +0100)
commit1270a032894ce8d0d796bb37689bf29f717791bb
tree54b3f9b2e46c356262c262d9ad4c961dcb4e91b8
parentaa2483f31cca9595a6ac32351bf124919d06b3fb
serial: imx: fix bogus dev_err

Only one of the two is really required, not both:
* have_rtscts or
* have_rtsgpio

In imx_rs485_config() this is done correctly, so RS485 is working,
just the error message is false.

Signed-off-by: Phil Eichinger <phil@zankapfel.net>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Fixes: 79b881ce346d ("serial: imx: Support common rs485 binding for RTS polarity"
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c