linux/drivers/misc
Uwe Kleine-König 0f841590fe misc: fastrpc: 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: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/d138bc7f6ec39038d2b5a23478fc036a41988bde.1708508896.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-05 14:28:52 +00:00
..
altera-stapl
bcm-vk tty: bcm: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
c2port c2port: replace deprecated strncpy with strscpy 2023-10-05 13:34:05 +02:00
cardreader misc: rtsx: add to support new card reader rts5264 2023-12-15 17:27:04 +01:00
cb710
cxl cxl: Convert to platform remove callback returning void 2024-03-05 14:28:51 +00:00
echo
eeprom misc: eeprom_93xx46: Remove unused of_gpio.h 2024-03-05 14:28:39 +00:00
genwqe mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDER 2024-01-08 15:27:15 -08:00
ibmasm ibmasm: convert to new timestamp accessors 2023-10-18 13:26:16 +02:00
lis3lv02d misc: lis3lv02d_i2c: Add missing setting of the reg_ctrl callback 2024-01-04 17:01:14 +01:00
lkdtm lkdtm: Add kfence read after free crash type 2023-12-01 09:51:43 -08:00
mchp_pci1xxxx misc: microchip: pci1xxxx: Fix some NULL vs IS_ERR() bugs 2023-08-12 12:58:56 +02:00
mei mei: vsc: Assign pinfo fields in variable declaration 2024-03-05 14:28:22 +00:00
ocxl powerpc updates for 6.8 2024-01-08 16:22:47 -08:00
pvpanic pvpanic: Kill duplicate PCI_VENDOR_ID_REDHAT definition 2024-01-04 17:01:14 +01:00
sgi-gru arch: Remove Itanium (IA-64) architecture 2023-09-11 08:13:17 +00:00
sgi-xp sysctl-6.7-rc1 2023-11-01 20:51:41 -10:00
ti-st drivers: misc: ti-st: replace deprecated strncpy with strscpy 2023-10-05 13:34:04 +02:00
uacce uacce: make uacce_class constant 2023-10-27 08:51:00 +02:00
vmw_vmci Char/Misc and other Driver changes for 6.8-rc1 2024-01-17 16:47:17 -08:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c misc: atmel-ssc: Convert to platform remove callback returning void 2024-03-05 14:28:51 +00:00
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
dw-xdata-pcie.c dw-xdata: Remove usage of the deprecated ida_simple_*() API 2023-12-31 11:09:26 +00:00
enclosure.c
fastrpc.c misc: fastrpc: Convert to platform remove callback returning void 2024-03-05 14:28:52 +00:00
gehc-achc.c
hi6421v600-irq.c misc: hi6421-spmi-pmic: Remove unused of_gpio.h 2024-03-05 14:28:41 +00:00
hisi_hikey_usb.c misc: hisi_hikey_usb: Remove unused of_gpio.h 2024-03-05 14:28:44 +00:00
hmc6352.c
hpilo.c misc: hpilo: rename device creation loop variable 2024-01-30 16:19:43 -08:00
hpilo.h
ibmvmc.c Char/Misc and other driver changes for 6.7-rc1 2023-11-03 14:51:08 -10:00
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
Kconfig misc: nsm: remove selecting the non-existing config CBOR 2023-12-15 17:07:41 +01:00
kgdbts.c
lattice-ecp3-config.c
Makefile misc: Add Nitro Secure Module driver 2023-11-28 19:05:16 +00:00
nsm.c misc: Add Nitro Secure Module driver 2023-11-28 19:05:16 +00:00
open-dice.c misc: open-dice: Fix spurious lockdep warning 2024-01-30 16:20:54 -08:00
pch_phub.c
pci_endpoint_test.c Merge branch 'pci/misc' 2024-01-15 12:10:41 -06:00
phantom.c misc: phantom: make phantom_class constant 2023-10-25 11:07:11 +02:00
qcom-coincell.c misc: Explicitly include correct DT includes 2023-08-04 15:39:04 +02:00
smpro-errmon.c
smpro-misc.c
sram-exec.c
sram.c misc: Explicitly include correct DT includes 2023-08-04 15:39:04 +02:00
sram.h
tifm_7xx1.c
tifm_core.c
tps6594-esm.c Merge 6.5-rc6 into char-misc-next 2023-08-13 22:14:51 +02:00
tps6594-pfsm.c misc: tps6594: Remove redundant dev_err_probe() for platform_get_irq_byname() 2023-08-12 12:58:40 +02:00
tsl2550.c
vcpu_stall_detector.c misc: Explicitly include correct DT includes 2023-08-04 15:39:04 +02:00
vmw_balloon.c vmw_balloon: dynamically allocate the vmw-balloon shrinker 2023-10-04 10:32:25 -07:00
xilinx_sdfec.c misc: Explicitly include correct DT includes 2023-08-04 15:39:04 +02:00
xilinx_tmr_inject.c misc: Explicitly include correct DT includes 2023-08-04 15:39:04 +02:00
xilinx_tmr_manager.c misc: Explicitly include correct DT includes 2023-08-04 15:39:04 +02:00