summaryrefslogtreecommitdiff
path: root/drivers/dma/fsl-dpaa2-qdma
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2023-03-11 01:41:28 +0300
committerLi Yang <leoyang.li@nxp.com>2023-05-31 02:58:43 +0300
commit59272ad8d9e8ea6398a96f8c6d62da284bf2ae6e (patch)
treeceaacaf7f7099dd194d0e5782d222606ce44d8f4 /drivers/dma/fsl-dpaa2-qdma
parentc27ea8e6325cad44c8c5bc2e8e7cc7635f358f31 (diff)
downloadlinux-59272ad8d9e8ea6398a96f8c6d62da284bf2ae6e.tar.xz
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>
Diffstat (limited to 'drivers/dma/fsl-dpaa2-qdma')
-rw-r--r--drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c b/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c
index 8dd40d00a672..a42a37634881 100644
--- a/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c
+++ b/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c
@@ -765,7 +765,7 @@ err_mcportal:
return err;
}
-static int dpaa2_qdma_remove(struct fsl_mc_device *ls_dev)
+static void dpaa2_qdma_remove(struct fsl_mc_device *ls_dev)
{
struct dpaa2_qdma_engine *dpaa2_qdma;
struct dpaa2_qdma_priv *priv;
@@ -787,8 +787,6 @@ static int dpaa2_qdma_remove(struct fsl_mc_device *ls_dev)
dma_async_device_unregister(&dpaa2_qdma->dma_dev);
kfree(priv);
kfree(dpaa2_qdma);
-
- return 0;
}
static void dpaa2_qdma_shutdown(struct fsl_mc_device *ls_dev)