linux/drivers/fpga
Uwe Kleine-König 52db8bdb6b
fpga: altera-hps2fpga: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/7a56558f7e5aa34bf0b21d22f9036a136a2b7322.1703006638.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
2023-12-21 22:31:53 +08:00
..
tests fpga: Fix memory leak for fpga_region_test_class_find() 2023-10-24 19:32:39 +02:00
altera-cvp.c
altera-fpga2sdram.c fpga: altera-fpga2sdram: Convert to platform remove callback returning void 2023-12-21 22:30:42 +08:00
altera-freeze-bridge.c fpga: altera-freeze-bridge: Convert to platform remove callback returning void 2023-12-21 22:31:40 +08:00
altera-hps2fpga.c fpga: altera-hps2fpga: Convert to platform remove callback returning void 2023-12-21 22:31:53 +08:00
altera-pr-ip-core-plat.c fpga: Explicitly include correct DT includes 2023-07-17 09:23:04 +08:00
altera-pr-ip-core.c
altera-ps-spi.c fpga: altera-ps-spi: Use spi_get_device_match_data() 2023-10-16 10:19:51 +08:00
dfl-afu-dma-region.c
dfl-afu-error.c
dfl-afu-main.c
dfl-afu-region.c
dfl-afu.h
dfl-fme-br.c
dfl-fme-error.c
dfl-fme-main.c fpga: dfl: fme: use SI unit prefix macros 2023-07-10 14:41:53 +08:00
dfl-fme-mgr.c fpga: dfl-fme-mgr: Convert to devm_platform_ioremap_resource() 2023-07-10 16:41:44 +08:00
dfl-fme-perf.c
dfl-fme-pr.c
dfl-fme-pr.h
dfl-fme-region.c
dfl-fme.h
dfl-n3000-nios.c
dfl-pci.c fpga: dfl-pci: Use pci_find_vsec_capability() to simplify the code 2023-08-07 18:21:40 +08:00
dfl.c drivers/fpga: use standard array-copy function 2023-11-17 16:34:26 +08:00
dfl.h Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00
fpga-bridge.c fpga: bridge: make fpga_bridge_class a static const structure 2023-08-11 23:03:37 +08:00
fpga-mgr.c fpga: fpga-mgr: make fpga_mgr_class a static const structure 2023-08-11 23:04:03 +08:00
fpga-region.c fpga: region: make fpga_region_class a static const structure 2023-08-11 23:04:21 +08:00
ice40-spi.c
intel-m10-bmc-sec-update.c mfd: intel-m10-bmc: Manage access to MAX 10 fw handshake registers 2023-06-15 09:19:36 +01:00
Kconfig fpga: add configuration for the FPGA KUnit test suites. 2023-07-23 14:04:50 +08:00
lattice-sysconfig-spi.c fpga: lattice-sysconfig-spi: Add explicit include for of.h 2023-04-06 20:36:27 +02:00
lattice-sysconfig.c
lattice-sysconfig.h
machxo2-spi.c
Makefile fpga: add configuration for the FPGA KUnit test suites. 2023-07-23 14:04:50 +08:00
microchip-spi.c fpga: Explicitly include correct DT includes 2023-07-17 09:23:04 +08:00
of-fpga-region.c fpga: Explicitly include correct DT includes 2023-07-17 09:23:04 +08:00
socfpga-a10.c fpga: socfpga-a10: Convert to devm_platform_ioremap_resource() 2023-07-15 22:46:58 +08:00
socfpga.c fpga: fpga-mgr: socfpga: Convert to devm_platform_ioremap_resource() 2023-07-10 16:48:04 +08:00
stratix10-soc.c fpga: Explicitly include correct DT includes 2023-07-17 09:23:04 +08:00
ts73xx-fpga.c fpga: fpga-mgr: ts73xx: Convert to devm_platform_ioremap_resource() 2023-07-10 16:52:58 +08:00
versal-fpga.c fpga: versal: Add support for 44-bit DMA operations 2023-10-16 10:32:00 +08:00
xilinx-pr-decoupler.c fpga: Use device_get_match_data() 2023-10-13 23:17:16 +08:00
xilinx-spi.c
zynq-fpga.c fpga: zynq-fpga: Convert to devm_platform_ioremap_resource() 2023-07-10 16:55:06 +08:00
zynqmp-fpga.c fpga: zynqmp-fpga: Adds status interface 2023-03-09 17:33:19 +01:00