remarkable-linux/drivers/fpga
Tobias Klauser d721f9bbe6 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>
2017-04-26 11:38:56 +02:00
..
altera-fpga2sdram.c ARM: socfpga: checking the wrong variable 2016-11-17 08:14:55 +01:00
altera-freeze-bridge.c fpga: altera_freeze_bridge: Constify ops 2017-04-08 17:45:28 +02:00
altera-hps2fpga.c fpga altera-hps2fpga: disable/unprepare clock on error in alt_fpga_bridge_probe() 2017-04-26 11:38:56 +02:00
altera-pr-ip-core-plat.c fpga pr ip: Platform driver for Altera Partial Reconfiguration IP. 2017-04-08 17:45:28 +02:00
altera-pr-ip-core.c fpga pr ip: Core driver support for Altera Partial Reconfiguration IP. 2017-04-08 17:45:28 +02:00
fpga-bridge.c fpga: bridge: Replace open-coded list_for_each + list_entry 2017-03-17 15:10:48 +09:00
fpga-mgr.c fpga: fix sparse warnings in fpga-mgr and fpga-bridge 2017-03-17 15:10:48 +09:00
fpga-region.c fpga: add config complete timeout 2017-04-08 17:45:28 +02:00
ice40-spi.c fpga: Add support for Lattice iCE40 FPGAs 2017-03-17 15:10:48 +09:00
Kconfig fpga: Add support for Xilinx LogiCORE PR Decoupler 2017-04-08 17:50:36 +02:00
Makefile fpga: Add support for Xilinx LogiCORE PR Decoupler 2017-04-08 17:50:36 +02:00
socfpga-a10.c fpga: Clarify how write_init works streaming modes 2016-11-29 15:51:49 -06:00
socfpga.c fpga-mgr: add fpga image information struct 2016-11-10 17:03:35 +01:00
ts73xx-fpga.c FPGA: Add TS-7300 FPGA manager 2017-03-17 15:10:48 +09:00
xilinx-pr-decoupler.c fpga: Add support for Xilinx LogiCORE PR Decoupler 2017-04-08 17:50:36 +02:00
xilinx-spi.c fpga manager: Add Xilinx slave serial SPI driver 2017-04-08 17:45:28 +02:00
zynq-fpga.c fpga: zynq: Add support for encrypted bitstreams 2017-03-17 15:10:48 +09:00