linux/drivers
Uwe Kleine-König 9d4ccdefcb ieee802154: hwsim: 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: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-wpan/20231117095922.876489-11-u.kleine-koenig@pengutronix.de
2023-11-20 11:29:57 +01:00
..
accel Merge tag 'drm-misc-fixes-2023-11-08' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2023-11-10 16:57:49 +01:00
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource RISC-V Patches for the 6.7 Merge Window, Part 2 2023-11-10 09:23:17 -08:00
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
dpll
edac
eisa
extcon
firewire
firmware RISC-V Patches for the 6.7 Merge Window, Part 2 2023-11-10 09:23:17 -08:00
fpga
fsi
gnss
gpio pwm: Changes for v6.7-rc1 2023-11-09 13:47:52 -08:00
gpu drm fixes for 6.7-rc1 2023-11-10 14:59:30 -08:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input Input updates for 6.7 merge window: 2023-11-09 14:18:42 -08:00
interconnect
iommu IOMMU Updates for Linux v6.7 2023-11-09 13:37:28 -08:00
ipack
irqchip arm64 fixes: 2023-11-10 12:22:14 -08:00
isdn
leds pwm: Changes for v6.7-rc1 2023-11-09 13:47:52 -08:00
macintosh
mailbox
mcb
md
media
memory IOMMU Updates for Linux v6.7 2023-11-09 13:37:28 -08:00
memstick
message
mfd
misc
mmc
most
mtd - removed AR7 platform support 2023-11-10 09:19:46 -08:00
mux
net ieee802154: hwsim: Convert to platform remove callback returning void 2023-11-20 11:29:57 +01:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of RISC-V Patches for the 6.7 Merge Window, Part 2 2023-11-10 09:23:17 -08:00
opp
parisc
parport parport: gsc: mark init function static 2023-11-10 08:41:23 +01:00
pci
pcmcia
peci
perf arm64 fixes: 2023-11-10 12:22:14 -08:00
phy
pinctrl
platform
pmdomain
pnp
power
powercap
pps
ps3
ptp
pwm pwm: samsung: Fix a bit test in pwm_samsung_resume() 2023-11-10 09:20:48 +01:00
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 Including fixes from netfilter and bpf. 2023-11-09 17:09:35 -08:00
sbus
scsi
sh
siox
slimbus
soc
soundwire
spi spi: Fixes for v6.7 2023-11-10 11:44:38 -08:00
spmi
ssb
staging pwm: Changes for v6.7-rc1 2023-11-09 13:47:52 -08:00
target
tc
tee
thermal
thunderbolt
tty - removed AR7 platform support 2023-11-10 09:19:46 -08:00
ufs
uio
usb
vdpa
vfio
vhost
video fbdev: fsl-diu-fb: mark wr_reg_wa() static 2023-11-10 09:16:02 +01:00
virt
virtio
w1
watchdog - removed AR7 platform support 2023-11-10 09:19:46 -08:00
xen
zorro
Kconfig - removed AR7 platform support 2023-11-10 09:19:46 -08:00
Makefile - removed AR7 platform support 2023-11-10 09:19:46 -08:00