]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94aee92f50d7a82cfcf77bdc0876d35115cc5ad8
tree10cc00b7b9be0180f09df75a6f8f92be3fb6d31e
parente3c37ee2bf13a1f0a6ff6cd11d38eb67b9d4653f
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