diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2011-04-05 22:20:37 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-06 10:15:23 -0400 |
commit | fb631eae1f2171033327e1b9ab427d4a113dc179 (patch) | |
tree | 5e7fe47b33d7461fe02a4a92c0901730b03861bb | |
parent | 0ed625b2f2751c249417bd28694e37ef48eb5fbb (diff) |
ASoC: sst_platform: unregister sst card when being closed
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/mid-x86/sst_platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/mid-x86/sst_platform.c b/sound/soc/mid-x86/sst_platform.c index 848ad3ce732..9ba941447d4 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) | |||
271 | str_id = stream->stream_info.str_id; | 271 | str_id = stream->stream_info.str_id; |
272 | if (str_id) | 272 | if (str_id) |
273 | ret_val = stream->sstdrv_ops->pcm_control->close(str_id); | 273 | ret_val = stream->sstdrv_ops->pcm_control->close(str_id); |
274 | unregister_sst_card(stream->sstdrv_ops); | ||
274 | kfree(stream->sstdrv_ops); | 275 | kfree(stream->sstdrv_ops); |
275 | kfree(stream); | 276 | kfree(stream); |
276 | return ret_val; | 277 | return ret_val; |