ASoC: rsnd: fixup dai remove callback operation
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 24 Jul 2014 08:51:31 +0000 (01:51 -0700)
committerMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 17:49:13 +0000 (18:49 +0100)
commitd62a3dcd4d75b1713d12697afdbffaf9a9da8f43
tree7a9d123028d1ca169e780e502a44444c7b1adf63
parent2bf865ba30405056e7922b960a1687bb4d5a4999
ASoC: rsnd: fixup dai remove callback operation

rsnd driver is using SSI/SRC/DVC which are
using "mod" base operation.
These "mod" are supporting "probe" and "remove" callbacks.

Current rsnd_probe should call "remove" if "probe" was failed,
since "probe" might be having DMAEngine handle.
Some mod's "remove" callback might be called without calling
"probe", but it is no problem. because "remove" do nothing
in such case.

So, all mod's "remove" should be called when error case
of rsnd_probe() and rsnd_remove().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/sh/rcar/core.c