OSDN Git Service

serial: mxs-auart: disable clks of Alphascale ASM9260
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 2 Mar 2018 22:42:01 +0000 (01:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 19:01:19 +0000 (11:01 -0800)
commitca7c22fc9e8d16b11b8be81254d5f59c5a9f5bcf
treecf6158cab52311a251c54d174490a1657a83edb5
parent7d6e2143bed7dd61dac3a00321292b36d63c2a2f
serial: mxs-auart: disable clks of Alphascale ASM9260

In case of Alphascale ASM9260 probe() enables s->clk and s->clk_ahb
via mxs_get_clks(), but there is no disable of the clocks.
The patch adds it to error paths and to mxs_auart_remove().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 254da0d753fb ("serial: mxs-auart: add Alphascale ASM9260 support")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c