]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_uniphier: call clk_disable_unprepare() on failure path
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 24 Jul 2015 06:58:28 +0000 (15:58 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 22:51:19 +0000 (15:51 -0700)
commitae37637e8b4679018d3461a8f34230e9a83f5154
tree2f4b611e3de6f7e0f29fcb283498ec5c3900643a
parent7ae9378bdafcd8edaede242108dc70250da8cbb2
serial: 8250_uniphier: call clk_disable_unprepare() on failure path

If serial8250_register_8250_port() fails, disable and unprepare the
clock before exiting.

Fixes: 1942a83b50e7 ("serial: 8250_uniphier: add UniPhier serial driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_uniphier.c