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)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:24:35 +0000 (09:24 +0900)
commitdc761f0918d77406458b63fdd789576ae90f4c60
treeb3f4626e999294a83d3fdea4793c09b287278c59
parentda9146777fe73d237efb5eeaf2572781652d4323
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