diff options
-rw-r--r-- | sound/soc/soc-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index f1901bb1466e..de6d5609c252 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -3076,6 +3076,11 @@ static void snd_soc_component_cleanup(struct snd_soc_component *component) | |||
3076 | 3076 | ||
3077 | static void snd_soc_component_del_unlocked(struct snd_soc_component *component) | 3077 | static void snd_soc_component_del_unlocked(struct snd_soc_component *component) |
3078 | { | 3078 | { |
3079 | struct snd_soc_card *card = component->card; | ||
3080 | |||
3081 | if (card) | ||
3082 | snd_soc_unregister_card(card); | ||
3083 | |||
3079 | list_del(&component->list); | 3084 | list_del(&component->list); |
3080 | } | 3085 | } |
3081 | 3086 | ||