]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: Fix bug of wrong decrement DT node's refcount
authorXiubo Li <Li.Xiubo@freescale.com>
Mon, 1 Sep 2014 06:46:52 +0000 (14:46 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 1 Sep 2014 16:48:07 +0000 (17:48 +0100)
commit35dbba978715c0802667c4671daafedbbbadffbf
treeafcd63e086b61b3e7f1cd91dac29479c7df4acee
parentf45f9587f1dd1e89dd1c89561c9572f777c5bcb7
ASoC: simple-card: Fix bug of wrong decrement DT node's refcount

DAI links's cpu_of_node's and codec_of_node's refcounts shouldn't
be decremented immediately at the end of the probe() fucntion.
Because we will still use them before the audio card is removed.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card.c