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)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:15:43 +0000 (11:15 +0100)
commitbe9676b8df22b7435a4dc8942e62f73c15e3689d
treec303e63a72029dcd6d13c084e1bee52233b07800
parent309f1399ba1a0aecb9469c942d70e9a3183bcd45
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>
(cherry picked from commit d62a3dcd4d75b1713d12697afdbffaf9a9da8f43)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/sh/rcar/core.c