bus: fsl-mc: Make remove function return void
authorUwe Kleine-König <uwe@kleine-koenig.org>
Fri, 10 Mar 2023 22:41:28 +0000 (23:41 +0100)
committerLi Yang <leoyang.li@nxp.com>
Tue, 30 May 2023 23:58:43 +0000 (18:58 -0500)
commit59272ad8d9e8ea6398a96f8c6d62da284bf2ae6e
treeceaacaf7f7099dd194d0e5782d222606ce44d8f4
parentc27ea8e6325cad44c8c5bc2e8e7cc7635f358f31
bus: fsl-mc: Make remove function return void

The value returned by an fsl-mc driver's remove function is mostly
ignored.  (Only an error message is printed if the value is non-zero
and then device removal continues unconditionally.)

So change the prototype of the remove function to return no value. This
way driver authors are not tempted to assume that passing an error to
the upper layer is a good idea. All drivers are adapted accordingly.
There is no intended change of behaviour, all callbacks were prepared to
return 0 before.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com> # sanity checks
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Tested-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/bus/fsl-mc/dprc-driver.c
drivers/bus/fsl-mc/fsl-mc-allocator.c
drivers/bus/fsl-mc/fsl-mc-bus.c
drivers/crypto/caam/caamalg_qi2.c
drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
drivers/soc/fsl/dpio/dpio-driver.c
drivers/vfio/fsl-mc/vfio_fsl_mc.c
include/linux/fsl/mc.h