tty: serial: uartlite: Disable clocks in case of errors
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tue, 13 Jul 2021 06:48:34 +0000 (12:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 10:46:52 +0000 (12:46 +0200)
commited623dffdeebcc0acac7be6af4a301ee7169cd21
tree5747d94bbdcc9a4ac8dfcb26f4edffd55267f4fd
parent3b0c406124719b625b1aba431659f5cdc24a982c
tty: serial: uartlite: Disable clocks in case of errors

In case the uart registration fails the clocks are left enabled.
Disable the clock in case of errors.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/20210713064835.27978-2-shubhrajyoti.datta@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/uartlite.c