serial: imx: Delete duplicated argument to | in imx_uart_probe
Subsystems (2)
PATCH 1/1 serial: imx: Delete duplicated argument to | in imx_uart_probe
When calculate ucr1 UCR1_TRDYEN is duplicate.
Signed-off-by Ye Bin <[email protected]>
--- drivers/tty/serial/imx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/tty/serial/imx.c +1 -2
@@ -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) {
Signature · 1 line
2.25.4
Quoted 13 lines · Ye Bin
When calculate ucr1
UCR1_TRDYENis duplicate.Signed-off-by Ye Bin <[email protected]>--- drivers/tty/serial/imx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/tty/serial/imx.c +0
-0
drivers/tty/serial/imx.c static int imx_uart_probe(struct platform_device *pdev) · line 2395
Quoted 9 lines
drivers/tty/serial/imx.c +1
-2@@ -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) {
Fixes c514a6f848b5b ("serial: imx: use Tx ready rather than Tx empty irq")
-Chris