diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2011-04-06 10:20:37 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-06 23:15:23 +0900 |
commit | fb631eae1f2171033327e1b9ab427d4a113dc179 (patch) | |
tree | 5e7fe47b33d7461fe02a4a92c0901730b03861bb /sound/soc/mid-x86 | |
parent | 0ed625b2f2751c249417bd28694e37ef48eb5fbb (diff) | |
download | linux-3.10-fb631eae1f2171033327e1b9ab427d4a113dc179.tar.gz linux-3.10-fb631eae1f2171033327e1b9ab427d4a113dc179.tar.bz2 linux-3.10-fb631eae1f2171033327e1b9ab427d4a113dc179.zip |
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>
Diffstat (limited to 'sound/soc/mid-x86')
-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) 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; |