|
@@ -2093,7 +2093,7 @@ static int serial_imx_probe(struct platform_device *pdev)
|
|
uart_get_rs485_mode(&pdev->dev, &sport->port.rs485);
|
|
uart_get_rs485_mode(&pdev->dev, &sport->port.rs485);
|
|
|
|
|
|
if (sport->port.rs485.flags & SER_RS485_ENABLED &&
|
|
if (sport->port.rs485.flags & SER_RS485_ENABLED &&
|
|
- (!sport->have_rtscts || !sport->have_rtsgpio))
|
|
|
|
|
|
+ (!sport->have_rtscts && !sport->have_rtsgpio))
|
|
dev_err(&pdev->dev, "no RTS control, disabling rs485\n");
|
|
dev_err(&pdev->dev, "no RTS control, disabling rs485\n");
|
|
|
|
|
|
imx_rs485_config(&sport->port, &sport->port.rs485);
|
|
imx_rs485_config(&sport->port, &sport->port.rs485);
|