bus: fsl-mc: Only warn once about errors on device unbind
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 10 Mar 2023 22:41:23 +0000 (23:41 +0100)
committerLi Yang <leoyang.li@nxp.com>
Tue, 30 May 2023 23:58:42 +0000 (18:58 -0500)
commitb816b9444c105b159ffc710579a204b75ed61261
tree18c4c57e852b039df5e6287032f68e9fabd5a276
parentac9a78681b921877518763ba0e89202254349d1b
bus: fsl-mc: Only warn once about errors on device unbind

If a platform driver's remove function returns an error code, this
results in a (generic and little helpful) error message. Otherwise the
value is ignored.

As fsl_mc_driver_remove() already emit an error message, return 0 also
in the error case. The only effect is to suppress the device core's
error message.

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/fsl-mc-bus.c