serial: imx: Delete duplicated argument to '|' in imx_uart_probe
authorYe Bin <yebin10@huawei.com>
Thu, 3 Sep 2020 06:24:01 +0000 (14:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Sep 2020 15:11:59 +0000 (17:11 +0200)
When calculate "ucr1" UCR1_TRDYEN is duplicate.

Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20200903062401.692442-1-yebin10@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c

index ce8c472cf385baf6c73bb4d761c04f19d541d92d..4e6ead1f650e678953b97618a9c42d16c7c9fde6 100644 (file)
@@ -2389,8 +2389,7 @@ static int imx_uart_probe(struct platform_device *pdev)
 
        /* Disable interrupts before requesting them */
        ucr1 = imx_uart_readl(sport, UCR1);
-       ucr1 &= ~(UCR1_ADEN | UCR1_TRDYEN | UCR1_IDEN | UCR1_RRDYEN |
-                UCR1_TRDYEN | UCR1_RTSDEN);
+       ucr1 &= ~(UCR1_ADEN | UCR1_TRDYEN | UCR1_IDEN | UCR1_RRDYEN | UCR1_RTSDEN);
        imx_uart_writel(sport, ucr1, UCR1);
 
        if (!imx_uart_is_imx1(sport) && sport->dte_mode) {