diff options
author | Richard Fitzgerald <rf@opensource.wolfsonmicro.com> | 2016-04-27 16:58:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-04-27 18:21:23 +0300 |
commit | 401cf1466a59139ec1805e2171d43a32be92f89c (patch) | |
tree | dbbc9e4531550ed542a954663a8c13a8f50274dd /sound/soc/codecs/cs47l24.c | |
parent | 66225e98b985047ef214632413cc404a6341c960 (diff) | |
download | linux-401cf1466a59139ec1805e2171d43a32be92f89c.tar.xz |
ASoC: arizona: call wm_adsp2_remove when codec driver is removed
Ensure that the wm_adsp driver cleans up when the codec driver
is removed.
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs47l24.c')
-rw-r--r-- | sound/soc/codecs/cs47l24.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs47l24.c b/sound/soc/codecs/cs47l24.c index 576087bda330..29313780a38a 100644 --- a/sound/soc/codecs/cs47l24.c +++ b/sound/soc/codecs/cs47l24.c @@ -1238,10 +1238,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; } |