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)
commite3c4a28b611b03d69bfbdffda985ef0dd94c2794
treeafcd63e086b61b3e7f1cd91dac29479c7df4acee
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
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