diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-03-10 23:41:26 +0100 |
---|---|---|
committer | Li Yang <leoyang.li@nxp.com> | 2023-05-30 18:58:42 -0500 |
commit | b3134039c5b3cf879841e3ec84c8cbf7675554ec (patch) | |
tree | c8ad673d5773a6cfd01c303a42b386c36404243b /drivers/soc/fsl | |
parent | e0ac89361cfb45d7c84de81563367745d2056f16 (diff) | |
download | lwn-b3134039c5b3cf879841e3ec84c8cbf7675554ec.tar.gz lwn-b3134039c5b3cf879841e3ec84c8cbf7675554ec.zip |
bus: fsl-mc: fsl-mc-allocator: Improve error reporting
Instead of silently returning an error in the remove callback (which yields
a generic and little informing error message), annotate each error path of
fsl_mc_resource_pool_remove_device() with an error message and return zero
in the remove callback to suppress the error message.
Note that changing the return value has no other effect than suppressing
the error message by the fsl_mc bus driver.
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/soc/fsl')
0 files changed, 0 insertions, 0 deletions