ASoC: rsnd: Emit useful error messages in .remove()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 5 Jul 2022 06:36:13 +0000 (08:36 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 6 Jul 2022 14:20:22 +0000 (15:20 +0100)
commite57297fc0915e2f95de26d18ad8ab6f17c068658
tree52b718080087b7fd24edb0cd7bc9e7990ea9e3e9
parentf1fd46e068f52893608469df98d4608672e3e45f
ASoC: rsnd: Emit useful error messages in .remove()

If more than one call of rsnd_dai_call(remove, ...) fails the platform
remove callback returns all values orred together which then makes the
driver core emit a generic error message which is little helpful.

Instead emit details of which call failed exactly and return 0. Note
returning 0 instead of an error code doesn't make a difference in the
driver core apart from the error message.

This is a preparation for making platform remove callbacks return void.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220705063613.93770-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c