diff options
| -rw-r--r-- | sound/soc/codecs/wm5102.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index 59fd3e8bf899..1bae17ee8817 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c | |||
| @@ -1955,11 +1955,14 @@ err_adsp2_codec_probe: | |||
| 1955 | static int wm5102_codec_remove(struct snd_soc_codec *codec) | 1955 | static int wm5102_codec_remove(struct snd_soc_codec *codec) |
| 1956 | { | 1956 | { |
| 1957 | struct wm5102_priv *priv = snd_soc_codec_get_drvdata(codec); | 1957 | struct wm5102_priv *priv = snd_soc_codec_get_drvdata(codec); |
| 1958 | struct arizona *arizona = priv->core.arizona; | ||
| 1958 | 1959 | ||
| 1959 | wm_adsp2_codec_remove(&priv->core.adsp[0], codec); | 1960 | wm_adsp2_codec_remove(&priv->core.adsp[0], codec); |
| 1960 | 1961 | ||
| 1961 | priv->core.arizona->dapm = NULL; | 1962 | priv->core.arizona->dapm = NULL; |
| 1962 | 1963 | ||
| 1964 | arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, priv); | ||
| 1965 | |||
| 1963 | arizona_free_spk(codec); | 1966 | arizona_free_spk(codec); |
| 1964 | 1967 | ||
| 1965 | return 0; | 1968 | return 0; |
