]> 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)
commit9799d0218dae2277f73f021312dad61e788c0d52
tree10cc00b7b9be0180f09df75a6f8f92be3fb6d31e
parent1e20a7ba1bc6ddceb7330633fb2a912f223396c6
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