ASoC: rsnd: count .probe/.remove for rsnd_mod_call()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 28 Apr 2016 01:49:48 +0000 (01:49 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 28 Apr 2016 09:46:47 +0000 (10:46 +0100)
commit1a5658c213116d56a1a38e83588f6636a57d6374
tree10cc00b7b9be0180f09df75a6f8f92be3fb6d31e
parent2ebdf684082fa9ad924df1b2f80653920c7ca097
ASoC: rsnd: count .probe/.remove for rsnd_mod_call()

Current rsnd_mod_call is counting its calling count to avoid unbalanced
function pair calling for error cases (ex init <-> quit).
SSI parent is now controlled as "mod" on current rsnd driver. Because of
this reason, SSI .remove function will be called twice if it was used as
SSI parent when user tried unbind. But probe/remove pair were not
counted. This patch counts probe/remove functions to avoid it.
Special thans Hiep

Reported-by: Hiep Cao Minh <cm-hiep@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/rsnd.h