Message ID | f1216028-ef38-4f05-996b-bafc71777abd@web.de |
---|---|
State | New |
Headers | show |
Series | tty: serial: fsl_lpuart: Use common code in lpuart_global_reset() | expand |
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 77efa7ee6eda..b63419c1a4ea 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -2811,8 +2811,7 @@ static int lpuart_global_reset(struct lpuart_port *sport) port)) { dev_warn(sport->port.dev, "timeout waiting for transmit engine to complete\n"); - clk_disable_unprepare(sport->ipg_clk); - return 0; + goto disable_unprepare_clk; } } @@ -2828,7 +2827,7 @@ static int lpuart_global_reset(struct lpuart_port *sport) lpuart32_write(port, ctrl, UARTCTRL); } } - +disable_unprepare_clk: clk_disable_unprepare(sport->ipg_clk); return 0; }