From: Lu Guanqun Date: Wed, 6 Apr 2011 02:20:37 +0000 (+0800) Subject: ASoC: sst_platform: unregister sst card when being closed X-Git-Tag: firefly_0821_release~3680^2~2691^2~1218 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fb631eae1f2171033327e1b9ab427d4a113dc179;p=firefly-linux-kernel-4.4.55.git ASoC: sst_platform: unregister sst card when being closed Signed-off-by: Lu Guanqun Signed-off-by: Mark Brown --- diff --git a/sound/soc/mid-x86/sst_platform.c b/sound/soc/mid-x86/sst_platform.c index 848ad3ce732e..9ba941447d41 100644 --- a/sound/soc/mid-x86/sst_platform.c +++ b/sound/soc/mid-x86/sst_platform.c @@ -271,6 +271,7 @@ static int sst_platform_close(struct snd_pcm_substream *substream) str_id = stream->stream_info.str_id; if (str_id) ret_val = stream->sstdrv_ops->pcm_control->close(str_id); + unregister_sst_card(stream->sstdrv_ops); kfree(stream->sstdrv_ops); kfree(stream); return ret_val;