linux/drivers/char/hw_random
Uwe Kleine-König 386a966f5c vio: make remove callback return void
The driver core ignores the return value of struct bus_type::remove()
because there is only little that can be done. To simplify the quest to
make this function return void, let struct vio_driver::remove() return
void, too. All users already unconditionally return 0, this commit makes
it obvious that returning an error code is a bad idea.

Note there are two nominally different implementations for a vio bus:
one in arch/sparc/kernel/vio.c and the other in
arch/powerpc/platforms/pseries/vio.c. This patch only adapts the powerpc
one.

Before this patch for a device that was bound to a driver without a
remove callback vio_cmo_bus_remove(viodev) wasn't called. As the device
core still considers the device unbound after vio_bus_remove() returns
calling this unconditionally is the consistent behaviour which is
implemented here.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Acked-by: Lijun Pan <ljp@linux.ibm.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[mpe: Drop unneeded hvcs_remove() forward declaration, squash in
 change from sfr to drop ibmvnic_remove() forward declaration]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210225221834.160083-1-uwe@kleine-koenig.org
2021-03-02 22:41:23 +11:00
..
amd-rng.c
atmel-rng.c
ba431-rng.c
bcm2835-rng.c
cavium-rng-vf.c
cavium-rng.c
cctrng.c hwrng: cctrn - Simplify with dev_err_probe() 2020-09-04 17:57:15 +10:00
cctrng.h
core.c
exynos-trng.c
geode-rng.c
hisi-rng.c
imx-rngc.c hwrng: imx-rngc - irq already prints an error 2020-11-06 14:31:15 +11:00
ingenic-rng.c
ingenic-trng.c hwrng: ingenic - Fix a resource leak in an error handling path 2021-01-03 08:41:37 +11:00
intel-rng.c hwrng: intel - cleanup initialization 2020-08-21 14:47:49 +10:00
iproc-rng200.c hwrng: iproc-rng200 - Move enable/disable in separate function 2021-01-03 08:41:37 +11:00
ixp4xx-rng.c
Kconfig This pull request contains the following changes for UML: 2020-12-17 17:56:44 -08:00
ks-sa-rng.c
Makefile hwrng: hisi - remove HiSilicon TRNG driver 2020-11-27 17:13:42 +11:00
meson-rng.c
mtk-rng.c
mxc-rnga.c hwrng: mxc-rnga - use semicolons rather than commas to separate statements 2020-10-02 18:02:15 +10:00
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c amba: Make the remove callback return void 2021-02-02 14:25:50 +01:00
npcm-rng.c hwrng: npcm - modify readl to readb 2020-10-02 18:02:13 +10:00
octeon-rng.c
omap-rng.c
omap3-rom-rng.c
optee-rng.c hwrng: optee - Use device-managed registration API 2021-02-10 17:55:58 +11:00
pasemi-rng.c
pic32-rng.c
powernv-rng.c
pseries-rng.c vio: make remove callback return void 2021-03-02 22:41:23 +11:00
s390-trng.c s390/trng: set quality to 1024 2020-11-09 11:21:00 +01:00
st-rng.c
stm32-rng.c hwrng: stm32 - use semicolons rather than commas to separate statements 2020-10-02 18:02:14 +10:00
timeriomem-rng.c hwrng: timeriomem - Use device-managed registration API 2021-02-10 17:56:01 +11:00
tx4939-rng.c
via-rng.c
virtio-rng.c
xgene-rng.c
xiphera-trng.c hwrng: xiphera-trng: add support for XIP8001B hwrng 2020-09-11 14:39:17 +10:00