linux-stable/drivers/spi
Uwe Kleine-König f74d4b8b97
spi: cavium-octeon: 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-18-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-06 12:31:17 +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-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-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-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-davinci.c
spi-dln2.c spi: dln2: Propagate firmware node 2021-12-23 13:38:38 +00:00
spi-dw-bt1.c spi: dw: Fix PM disable depth imbalance in dw_spi_bt1_probe 2022-09-26 16:10:36 +01: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: Add support for Intel Thunder Bay SPI controller 2022-07-13 13:32:32 +01:00
spi-dw-pci.c spi: dw: Put the driver entities naming in order 2021-11-16 14:30:05 +00:00
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-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: add cs-gpios support 2022-11-16 14:46:07 +00:00
spi-fsl-espi.c
spi-fsl-lib.c
spi-fsl-lib.h
spi-fsl-lpspi.c spi: spi-fsl-lpspi: support multiple cs for lpspi 2022-12-07 14:19:20 +00:00
spi-fsl-qspi.c spi: spi-fsl-qspi: Use devm_platform_ioremap_resource_byname() 2022-09-26 16:10:41 +01:00
spi-fsl-spi.c spi: fsl_spi: Don't change speed while chipselect is active 2022-12-14 14:24:51 +00:00
spi-fsl-spi.h
spi-geni-qcom.c TTY/Serial driver updates for 6.3-rc1 2023-02-24 12:17:14 -08: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: Fix the debugfs directory name incorrect 2021-11-17 13:04:54 +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: Use devm_platform_get_and_ioremap_resource() 2022-10-19 15:57:01 +01: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 mtd: spi-nor: intel-spi: Convert to SPI MEM 2022-02-14 12:53:09 +00:00
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 mtd: spi-nor: intel-spi: Convert to SPI MEM 2022-02-14 12:53:09 +00:00
spi-iproc-qspi.c spi: bcm-qspi: Make bcm_qspi_remove() return void 2022-10-18 19:16:53 +01:00
spi-jcore.c
spi-lantiq-ssc.c spi: Use of_device_get_match_data() 2022-02-21 13:25:19 +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: Updates for v6.2 2022-12-13 12:54:31 -08:00
spi-meson-spifc.c spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe 2022-01-07 13:36:38 +00:00
spi-microchip-core-qspi.c spi: microchip-core-qspi: Add support for microchip fpga qspi controllers 2022-08-15 12:17:38 +01:00
spi-microchip-core.c spi: microchip-core: Remove the unused function mchp_corespi_enable() 2022-10-17 12:49:47 +01: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: Replace NO_IRQ by 0 2022-10-10 13:01:20 +01:00
spi-mpc512x-psc.c spi: mpc512x-psc: Fix compile errors 2022-02-02 16:09:29 +00:00
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: spi-mtk-nor: Add recovery mechanism for dma read timeout 2022-12-07 14:19:22 +00:00
spi-mtk-snfi.c spi: mtk-snfi: Add snfi sample delay and read latency adjustment 2023-02-09 17:07:20 +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: Use devm_platform_ioremap_resource_byname() 2022-10-31 13:20:25 +00:00
spi-mxs.c spi: mxs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync 2022-04-25 14:00:59 +01:00
spi-npcm-fiu.c spi: npcm-fiu: Use devm_platform_ioremap_resource_byname() 2022-10-31 13:20:24 +00:00
spi-npcm-pspi.c spi: npcm-pspi: Add NPCM845 peripheral SPI support 2022-08-15 12:17:29 +01:00
spi-nxp-fspi.c spi: nxp-fspi: make const array ls1028a_soc_attr static 2022-11-02 16:44:15 +00:00
spi-oc-tiny.c
spi-omap-uwire.c ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
spi-omap2-mcspi.c spi: omap2-mcspi: Fix probe so driver works again 2022-09-21 10:28:20 +01:00
spi-orion.c
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.c spi: pic32: Convert to use GPIO descriptors 2022-01-31 15:17:30 +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-pxa2xx-dma.c
spi-pxa2xx-pci.c spi: pxa2xx-pci: Constify struct pxa_spi_info variables 2022-02-28 12:10:27 +00:00
spi-pxa2xx.c spi: pxa2xx: Move OF and ACPI ID tables closer to their user 2022-10-24 13:30:18 +01:00
spi-pxa2xx.h spi: pxa2xx: Get rid of unused ->cs_control() 2021-11-29 12:19:59 +00:00
spi-qcom-qspi.c
spi-qup.c spi: qup: support using GPIO as chip select line 2022-10-17 12:46:59 +01:00
spi-rb4xx.c
spi-realtek-rtl.c
spi-rockchip-sfc.c spi: rockchip-sfc: fix platform_get_irq.cocci warning 2022-03-10 12:17:56 +00:00
spi-rockchip.c spi: rockchip: Unmask IRQ at the final to avoid preemption 2022-06-20 11:35:43 +01:00
spi-rpc-if.c memory: renesas-rpc-if: Remove Runtime PM wrappers 2023-01-23 11:48:00 +01:00
spi-rspi.c spi: spi-rspi: Fix PIO fallback on RZ platforms 2022-07-21 17:21:07 +01:00
spi-s3c64xx.c spi: s3c64xx: Fix large transfers with DMA 2022-09-28 12:54:07 +01: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-msiof.c spi: sh-msiof: add generic Gen4 binding 2022-08-29 12:41:36 +01:00
spi-sh-sci.c
spi-sh.c spi: sh: Switch to using core message queue 2022-06-27 13:24:35 +01:00
spi-sifive.c spi: sifive: add PM callbacks to support suspend/resume 2022-06-10 13:32:24 +01:00
spi-slave-mt27xx.c
spi-slave-system-control.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
spi-slave-time.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
spi-sn-f-ospi.c spi: spi-sn-f-ospi: fix duplicate flag while assigning to mode_bits 2023-02-23 11:40:17 +00:00
spi-sprd-adi.c
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: Covert to use GPIO descriptors 2022-02-01 16:08:45 +00:00
spi-stm32-qspi.c spi: stm32-qspi: Refactor dual flash mode enable check in ->setup() 2022-08-31 12:13:11 +01:00
spi-stm32.c spi: stm32: fix stm32_spi_prepare_mbr() that halves spi clk for every run 2022-11-03 13:25:40 +00:00
spi-sun4i.c spi: sun4i: fix typos in comments 2022-03-15 12:03:58 +00:00
spi-sun6i.c
spi-sunplus-sp7021.c spi: remove spin_lock_irq and variable in the irq procress 2022-04-19 13:13:42 +01:00
spi-synquacer.c spi: synquacer: Fix timeout handling in synquacer_spi_transfer_one() 2023-02-15 16:07:53 +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: spi-tegra114: using pm_runtime_resume_and_get instead of pm_runtime_get_sync 2022-04-19 13:13:44 +01: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: make remove callback a void function 2022-02-09 13:00:45 +00:00
spi-topcliff-pch.c spi: topcliff-pch: Use core message validation 2022-06-20 12:43:36 +01:00
spi-uniphier.c spi: uniphier: fix reference count leak in uniphier_spi_probe() 2022-01-26 15:52:05 +00:00
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: xlp: Remove Netlogic XLP variants 2021-11-15 13:27:17 +00:00
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: spi-zynq-qspi: Fix a NULL pointer dereference in zynq_qspi_exec_mem_op() 2022-02-08 13:37:50 +00:00
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