diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-05-18 22:08:23 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-05-29 10:49:46 +0530 |
commit | 1ec33e22b8bd10136c415c6c1b924bf32057354d (patch) | |
tree | bce2ef64c4a5e3b1c5e5ca33d806cdd181fc3ddf /tools/perf/scripts/python/sctop.py | |
parent | 217f5e0de397fafc94d25a8f7baf71920bea4a04 (diff) |
soundwire: amd: Improve error message in remove callback
Returning an error code in the remove callback yields to an error
message
remove callback returned a non-zero value. This will be ignored.
After that the device is removed anyhow. Improve the error message to at
least say what the actual problem is. While touching that code, convert
the driver to the .remove_new() callback which returns no value with the
same effect as returning zero in a .remove() callback.
As the return value is ignored by the core the only effect of this patch
is to improve the error message. (And the motivating effect is that
there is one less driver using .remove().)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230518200823.249795-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions