summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs47l24.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-05-04 17:51:26 +0100
committerMark Brown <broonie@kernel.org>2016-05-04 17:51:26 +0100
commit0023f8a6d5c22b2bed0f21d79805c6baee397620 (patch)
tree036bb946ecc6b6a260a8bb9674b6a8bed9394ecb /sound/soc/codecs/cs47l24.c
parent9ee78757d5dae51decc881b293a39a605c9a6df2 (diff)
parent56574d541f93cf8c9449f9ecadc83d97323cfcec (diff)
Merge branch 'topic/arizona' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-adsp
Diffstat (limited to 'sound/soc/codecs/cs47l24.c')
-rw-r--r--sound/soc/codecs/cs47l24.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs47l24.c b/sound/soc/codecs/cs47l24.c
index 6b8b5571d3cc..e42ba0634634 100644
--- a/sound/soc/codecs/cs47l24.c
+++ b/sound/soc/codecs/cs47l24.c
@@ -1271,10 +1271,15 @@ static int cs47l24_probe(struct platform_device *pdev)
static int cs47l24_remove(struct platform_device *pdev)
{
+ struct cs47l24_priv *cs47l24 = platform_get_drvdata(pdev);
+
snd_soc_unregister_platform(&pdev->dev);
snd_soc_unregister_codec(&pdev->dev);
pm_runtime_disable(&pdev->dev);
+ wm_adsp2_remove(&cs47l24->core.adsp[1]);
+ wm_adsp2_remove(&cs47l24->core.adsp[2]);
+
return 0;
}