linux/drivers/spi
Uwe Kleine-König bff9694e97
spi: tegra114: 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 (mostly) ignored
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.

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>
Link: https://lore.kernel.org/r/20230303172041.2103336-79-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-06 21:18:20 +00:00
..
atmel-quadspi.c spi: atmel-quadspi: switch to use modern name 2023-01-23 13:31:05 +00:00
internals.h
Kconfig spi: Updates for v6.3 2023-02-22 10:53:37 -08:00
Makefile spi: Updates for v6.3 2023-02-22 10:53:37 -08:00
spi-altera-core.c spi: altera: switch to use modern name 2022-12-29 13:22:03 +00:00
spi-altera-dfl.c spi: spi-altera-dfl: switch to use modern name 2022-12-29 13:22:04 +00:00
spi-altera-platform.c spi: spi-altera-platform: switch to use modern name 2022-12-29 13:22:05 +00:00
spi-amd.c spi: amd: Fix SPI_SPD7 value 2022-11-04 12:25:03 +00:00
spi-ar934x.c spi: ar934x: Convert to platform remove callback returning void 2023-03-06 12:29:21 +00:00
spi-armada-3700.c spi: armada-3700: Convert to platform remove callback returning void 2023-03-06 12:29:22 +00:00
spi-aspeed-smc.c spi: aspeed-smc: Convert to platform remove callback returning void 2023-03-06 12:29:23 +00:00
spi-at91-usart.c spi: at91-usart: Convert to platform remove callback returning void 2023-03-06 12:29:24 +00:00
spi-ath79.c spi: ath79: Convert to platform remove callback returning void 2023-03-06 12:29:24 +00:00
spi-atmel.c spi: atmel: Convert to platform remove callback returning void 2023-03-06 12:29:25 +00:00
spi-au1550.c spi: au1550: Convert to platform remove callback returning void 2023-03-06 12:29:26 +00:00
spi-axi-spi-engine.c spi: axi-spi-engine: Convert to platform remove callback returning void 2023-03-06 12:29:27 +00:00
spi-bcm63xx-hsspi.c spi: bcm63xx-hsspi: Convert to platform remove callback returning void 2023-03-06 12:31:12 +00:00
spi-bcm63xx.c spi: bcm63xx: Convert to platform remove callback returning void 2023-03-06 12:31:13 +00:00
spi-bcm2835.c spi: Updates for v5.20 2022-08-02 10:55:04 -07:00
spi-bcm2835aux.c spi: bcm2835aux: Convert to platform remove callback returning void 2023-03-06 12:31:11 +00:00
spi-bcm-qspi.c spi: bcm-qspi: Make bcm_qspi_remove() return void 2022-10-18 19:16:53 +01:00
spi-bcm-qspi.h spi: bcm-qspi: Make bcm_qspi_remove() return void 2022-10-18 19:16:53 +01:00
spi-bcmbca-hsspi.c spi: bcmbca-hsspi: Convert to platform remove callback returning void 2023-03-06 12:31:14 +00:00
spi-bitbang-txrx.h spi: bitbang: Fix lsb-first Rx 2022-08-15 01:26:20 +01:00
spi-bitbang.c
spi-brcmstb-qspi.c spi: brcmstb-qspi: Convert to platform remove callback returning void 2023-03-06 12:31:15 +00:00
spi-butterfly.c
spi-cadence-quadspi.c spi: cadence-quadspi: Convert to platform remove callback returning void 2023-03-06 12:31:16 +00:00
spi-cadence-xspi.c spi: cadence: Fix busy cycles calculation 2022-12-26 23:23:21 +00:00
spi-cadence.c spi: cadence: Convert to platform remove callback returning void 2023-03-06 12:31:17 +00:00
spi-cavium-octeon.c spi: cavium-octeon: Convert to platform remove callback returning void 2023-03-06 12:31:17 +00:00
spi-cavium-thunderx.c
spi-cavium.c
spi-cavium.h
spi-clps711x.c spi: clps711x: Use syscon_regmap_lookup_by_phandle 2022-04-25 14:01:09 +01:00
spi-coldfire-qspi.c spi: coldfire-qspi: Convert to platform remove callback returning void 2023-03-06 12:31:18 +00:00
spi-davinci.c spi: davinci: Convert to platform remove callback returning void 2023-03-06 12:31:19 +00:00
spi-dln2.c spi: dln2: Convert to platform remove callback returning void 2023-03-06 12:31:20 +00:00
spi-dw-bt1.c spi: dw-bt1: Convert to platform remove callback returning void 2023-03-06 12:31:21 +00:00
spi-dw-core.c spi: dw: Fix wrong FIFO level setting for long xfers 2023-01-27 16:38:04 +00:00
spi-dw-dma.c spi: dw-dma: decrease reference count in dw_spi_dma_init_mfld() 2022-11-16 13:43:03 +00:00
spi-dw-mmio.c spi: dw-mmio: Convert to platform remove callback returning void 2023-03-06 12:31:22 +00:00
spi-dw-pci.c
spi-dw.h spi: dw: Add support for Intel Thunder Bay SPI controller 2022-07-13 13:32:32 +01:00
spi-ep93xx.c spi: ep93xx: Convert to platform remove callback returning void 2023-03-06 12:31:23 +00:00
spi-falcon.c
spi-fsi.c spi: fsi: Increase timeout and ensure status is checked 2022-06-23 15:48:21 +01:00
spi-fsl-cpm.c spi: fsl-cpm: substitute empty_zero_page with helper ZERO_PAGE(0) 2022-10-19 13:05:37 +01:00
spi-fsl-cpm.h
spi-fsl-dspi.c spi: fsl-dspi: Convert to platform remove callback returning void 2023-03-06 12:31:24 +00:00
spi-fsl-espi.c spi: fsl-espi: Convert to platform remove callback returning void 2023-03-06 12:31:24 +00:00
spi-fsl-lib.c
spi-fsl-lib.h
spi-fsl-lpspi.c spi: fsl-lpspi: Convert to platform remove callback returning void 2023-03-06 12:31:25 +00:00
spi-fsl-qspi.c spi: fsl-qspi: Convert to platform remove callback returning void 2023-03-06 12:31:26 +00:00
spi-fsl-spi.c spi: fsl-spi: Convert to platform remove callback returning void 2023-03-06 12:31:27 +00:00
spi-fsl-spi.h
spi-geni-qcom.c spi: geni-qcom: Convert to platform remove callback returning void 2023-03-06 12:31:28 +00:00
spi-gpio.c spi: spi-gpio: Don't set MOSI as an input if not 3WIRE mode 2022-12-08 11:46:41 +00:00
spi-gxp.c spi: spi-gxp: fix typo in SPDX identifier line 2022-10-04 12:45:07 +01:00
spi-hisi-kunpeng.c spi: hisi-kunpeng: Convert to platform remove callback returning void 2023-03-06 12:31:29 +00:00
spi-hisi-sfc-v3xx.c spi: hisi-sfc-v3xx: Fix a typo ("duall") 2022-11-03 19:34:33 +00:00
spi-img-spfi.c spi: img-spfi: Convert to platform remove callback returning void 2023-03-06 12:31:30 +00:00
spi-imx.c spi: Updates for v6.2 2022-12-13 12:54:31 -08:00
spi-ingenic.c spi: ingenic: Add support for new Ingenic SoCs. 2022-04-25 14:00:51 +01:00
spi-intel-pci.c spi: intel: Add support for controllers 2023-02-02 11:42:30 +00:00
spi-intel-platform.c
spi-intel.c Merge remote-tracking branch 'spi/for-6.3' into spi-next 2023-02-17 22:05:55 +00:00
spi-intel.h
spi-iproc-qspi.c spi: iproc-qspi: Convert to platform remove callback returning void 2023-03-06 12:31:31 +00:00
spi-jcore.c
spi-lantiq-ssc.c spi: lantiq-ssc: Convert to platform remove callback returning void 2023-03-06 12:31:31 +00:00
spi-lm70llp.c
spi-loopback-test.c spi: spi-loopback-test: Allow skipping delays 2023-01-03 15:25:02 +00:00
spi-lp8841-rtc.c
spi-mem.c spi: spi-mem: Allow controller supporting mem_ops without exec_op 2023-02-10 21:36:43 +00:00
spi-meson-spicc.c spi: meson-spicc: Convert to platform remove callback returning void 2023-03-06 12:31:32 +00:00
spi-meson-spifc.c spi: meson-spifc: Convert to platform remove callback returning void 2023-03-06 12:31:33 +00:00
spi-microchip-core-qspi.c spi: microchip-core-qspi: Convert to platform remove callback returning void 2023-03-06 12:31:34 +00:00
spi-microchip-core.c spi: microchip-core: Convert to platform remove callback returning void 2023-03-06 12:31:35 +00:00
spi-mpc52xx-psc.c spi: mpc52xx-psc: Switch to using core message queue 2022-06-27 13:24:36 +01:00
spi-mpc52xx.c spi: mpc52xx: Convert to platform remove callback returning void 2023-03-06 21:17:44 +00:00
spi-mpc512x-psc.c
spi-mt65xx.c spi: mediatek: Enable irq before the spi registration 2022-12-26 23:23:21 +00:00
spi-mt7621.c spi: mt7621: Remove 'clk' from 'struct mt7621_spi' 2022-08-29 17:51:39 +01:00
spi-mtk-nor.c spi: mtk-nor: Convert to platform remove callback returning void 2023-03-06 21:17:45 +00:00
spi-mtk-snfi.c spi: mtk-snfi: Convert to platform remove callback returning void 2023-03-06 21:17:46 +00:00
spi-mux.c spi: mux: Fix mux interaction with fast path optimisations 2022-09-02 13:27:13 +01:00
spi-mxic.c spi: mxic: Convert to platform remove callback returning void 2023-03-06 21:17:46 +00:00
spi-mxs.c spi: mxs: Convert to platform remove callback returning void 2023-03-06 21:17:47 +00:00
spi-npcm-fiu.c spi: npcm-fiu: Convert to platform remove callback returning void 2023-03-06 21:17:48 +00:00
spi-npcm-pspi.c spi: npcm-pspi: Convert to platform remove callback returning void 2023-03-06 21:17:50 +00:00
spi-nxp-fspi.c spi: nxp-fspi: Convert to platform remove callback returning void 2023-03-06 21:17:51 +00:00
spi-oc-tiny.c spi: oc-tiny: Convert to platform remove callback returning void 2023-03-06 21:17:51 +00:00
spi-omap2-mcspi.c spi: omap2-mcspi: Convert to platform remove callback returning void 2023-03-06 21:17:53 +00:00
spi-omap-uwire.c spi: omap-uwire: Convert to platform remove callback returning void 2023-03-06 21:17:52 +00:00
spi-orion.c spi: orion: Convert to platform remove callback returning void 2023-03-06 21:17:54 +00:00
spi-pci1xxxx.c spi: microchip: pci1xxxx: Add suspend and resume support for PCI1XXXX SPI driver 2022-11-29 16:59:11 +00:00
spi-pic32-sqi.c spi: pic32-sqi: Convert to platform remove callback returning void 2023-03-06 21:17:55 +00:00
spi-pic32.c spi: pic32: Convert to platform remove callback returning void 2023-03-06 21:17:56 +00:00
spi-pl022.c spi: pl022: Only use DT-specified DMA channels 2023-01-03 13:42:54 +00:00
spi-ppc4xx.c spi: ppc4xx: Convert to platform remove callback returning void 2023-03-06 21:17:57 +00:00
spi-pxa2xx-dma.c
spi-pxa2xx-pci.c
spi-pxa2xx.c spi: pxa2xx: Convert to platform remove callback returning void 2023-03-06 21:17:58 +00:00
spi-pxa2xx.h
spi-qcom-qspi.c spi: qcom-qspi: Convert to platform remove callback returning void 2023-03-06 21:17:59 +00:00
spi-qup.c spi: qup: support using GPIO as chip select line 2022-10-17 12:46:59 +01:00
spi-rb4xx.c spi: rb4xx: Convert to platform remove callback returning void 2023-03-06 21:18:00 +00:00
spi-realtek-rtl.c
spi-rockchip-sfc.c spi: rockchip-sfc: Convert to platform remove callback returning void 2023-03-06 21:18:01 +00:00
spi-rockchip.c spi: rockchip: Convert to platform remove callback returning void 2023-03-06 21:18:02 +00:00
spi-rpc-if.c spi: rpc-if: Convert to platform remove callback returning void 2023-03-06 21:18:02 +00:00
spi-rspi.c spi: rspi: Convert to platform remove callback returning void 2023-03-06 21:18:03 +00:00
spi-s3c64xx.c spi: s3c64xx: Convert to platform remove callback returning void 2023-03-06 21:18:05 +00:00
spi-sc18is602.c spi: sc18is602: Convert to i2c's .probe_new() 2022-11-23 17:26:25 +00:00
spi-sh-hspi.c spi: sh-hspi: Convert to platform remove callback returning void 2023-03-06 21:18:06 +00:00
spi-sh-msiof.c spi: sh-msiof: Convert to platform remove callback returning void 2023-03-06 21:18:07 +00:00
spi-sh-sci.c spi: sh-sci: Convert to platform remove callback returning void 2023-03-06 21:18:07 +00:00
spi-sh.c spi: sh: Convert to platform remove callback returning void 2023-03-06 21:18:08 +00:00
spi-sifive.c spi: sifive: Convert to platform remove callback returning void 2023-03-06 21:18:09 +00:00
spi-slave-mt27xx.c spi: slave-mt27xx: Convert to platform remove callback returning void 2023-03-06 21:18:10 +00:00
spi-slave-system-control.c
spi-slave-time.c
spi-sn-f-ospi.c spi: sn-f-ospi: Convert to platform remove callback returning void 2023-03-06 21:18:11 +00:00
spi-sprd-adi.c spi: sprd-adi: Convert to platform remove callback returning void 2023-03-06 21:18:12 +00:00
spi-sprd.c spi: spi-sprd: using pm_runtime_resume_and_get instead of pm_runtime_get_sync 2022-04-25 14:00:57 +01:00
spi-st-ssc4.c spi: st-ssc4: Convert to platform remove callback returning void 2023-03-06 21:18:13 +00:00
spi-stm32-qspi.c spi: stm32-qspi: Convert to platform remove callback returning void 2023-03-06 21:18:14 +00:00
spi-stm32.c spi: stm32: Convert to platform remove callback returning void 2023-03-06 21:18:15 +00:00
spi-sun4i.c spi: sun4i: Convert to platform remove callback returning void 2023-03-06 21:18:16 +00:00
spi-sun6i.c spi: sun6i: Convert to platform remove callback returning void 2023-03-06 21:18:17 +00:00
spi-sunplus-sp7021.c spi: sunplus-sp7021: Convert to platform remove callback returning void 2023-03-06 21:18:18 +00:00
spi-synquacer.c spi: synquacer: Convert to platform remove callback returning void 2023-03-06 21:18:19 +00:00
spi-tegra20-sflash.c spi: spi-tegra20-sflash: using pm_runtime_resume_and_get instead of pm_runtime_get_sync 2022-04-25 14:01:03 +01:00
spi-tegra20-slink.c spi: tegra20-slink: fix UAF in tegra_slink_remove() 2022-07-13 13:49:03 +01:00
spi-tegra114.c spi: tegra114: Convert to platform remove callback returning void 2023-03-06 21:18:20 +00:00
spi-tegra210-quad.c spi: tegra210-quad: Fix iterator outside loop 2023-02-28 13:59:58 +00:00
spi-test.h
spi-ti-qspi.c spi: spi-ti-qspi: Support per-transfer and per-slave speed_hz settings 2022-06-06 12:41:36 +01:00
spi-tle62x0.c
spi-topcliff-pch.c spi: topcliff-pch: Use core message validation 2022-06-20 12:43:36 +01:00
spi-uniphier.c
spi-wpcm-fiu.c spi: wpcm-fiu: Add direct map support 2022-11-25 13:30:16 +00:00
spi-xcomm.c spi: xcomm: Convert to i2c's .probe_new() 2022-11-23 17:26:27 +00:00
spi-xilinx.c spi: xilinx: add force_irq for QSPI mode 2023-02-14 18:04:59 +00:00
spi-xlp.c
spi-xtensa-xtfpga.c spi: xtensa-xtfpga: Switch to use devm_spi_alloc_master() 2022-09-22 14:39:50 +01:00
spi-zynq-qspi.c
spi-zynqmp-gqspi.c spi: spi-zynqmp-gqspi: Add tap delay support for GQSPI controller on Versal platform 2022-10-19 14:34:40 +01:00
spi.c Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
spidev.c spi: spidev: Fix double unlock in spidev_sync() 2023-02-06 14:51:33 +00:00