fpga: socfpga-a10: disable clk on error in socfpga_a10_fpga_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 8 Dec 2017 17:37:00 +0000 (11:37 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Dec 2017 14:59:16 +0000 (15:59 +0100)
commitd9cc5a0edb705ced4ce91b4c6ee73ec6f5bfa49a
treeef9dc53ec47e5fa5217452238857d4b6bc9263e2
parent8d52af6795c0480a20272159103976a893603fde
fpga: socfpga-a10: disable clk on error in socfpga_a10_fpga_probe()

If fpga_mgr_register() fails, a clock is left undisabled.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/socfpga-a10.c