summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-04-24 16:34:20 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-26 11:38:56 +0200
commitd721f9bbe6a7d9543f560053f8be5237e7db18e9 (patch)
treeef87e8fa5e5887027e1225eb832e2d7a1b186f7e /drivers/fpga/fpga-region.c
parent139752a210544dd02bac5c21322751de300ece93 (diff)
downloadlinux-stable-d721f9bbe6a7d9543f560053f8be5237e7db18e9.tar.gz
linux-stable-d721f9bbe6a7d9543f560053f8be5237e7db18e9.tar.bz2
linux-stable-d721f9bbe6a7d9543f560053f8be5237e7db18e9.zip
fpga altera-hps2fpga: disable/unprepare clock on error in alt_fpga_bridge_probe()
If either _alt_hps2fpga_enable_set() or fpga_bridge_register() fail in alt_fpga_bridge_probe(), the clock remains enabled and prepared. Also, in the error path for _alt_hps2fpga_enable_set() a call to fpga_bridge_unregister() is made even though the bridge was not registered yet. Remove the unnecessary call to fpga_bridge_unregister() and call clk_disable_unprepare() in both error paths in order to make sure the clock gets properly disabled and unprepared. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Moritz Fischer <mdf@kernel.org> Signed-off-by: Alan Tull <atull@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions