diff options
author | Jie Yang <yang.jie@intel.com> | 2015-05-28 17:51:54 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-28 18:05:05 +0300 |
commit | 506c148ee5e1bfb836116353305927ca4c21a23e (patch) | |
tree | e575525c6b6a09fae0ae71615fa9cb2078abd2bd /sound/soc/intel | |
parent | d0e72cc0ac3dcebf0de179ba1dd33a276642c5bb (diff) | |
download | linux-506c148ee5e1bfb836116353305927ca4c21a23e.tar.xz |
ASoC: Intel: remove unused function hsw_pcm_free_modules()
Remove the unused function hsw_pcm_free_modules() to fix the
compling warning:
sound/soc/intel/haswell/sst-haswell-pcm.c:923:13:
warning: 'sw_pcm_free_modules' defined but not used
[-Wunused-function]
static void hsw_pcm_free_modules(struct hsw_priv_data *pdata)
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/haswell/sst-haswell-pcm.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sound/soc/intel/haswell/sst-haswell-pcm.c b/sound/soc/intel/haswell/sst-haswell-pcm.c index 23ae0400d6db..225c04c38e42 100644 --- a/sound/soc/intel/haswell/sst-haswell-pcm.c +++ b/sound/soc/intel/haswell/sst-haswell-pcm.c @@ -920,21 +920,6 @@ err: return -ENODEV; } -static void hsw_pcm_free_modules(struct hsw_priv_data *pdata) -{ - struct sst_hsw *hsw = pdata->hsw; - struct hsw_pcm_data *pcm_data; - int i; - - for (i = 0; i < ARRAY_SIZE(mod_map); i++) { - pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; - sst_hsw_runtime_module_free(pcm_data->runtime); - } - if (sst_hsw_is_module_loaded(hsw, SST_HSW_MODULE_WAVES)) { - sst_hsw_runtime_module_free(pdata->runtime_waves); - } -} - static int hsw_pcm_new(struct snd_soc_pcm_runtime *rtd) { struct snd_pcm *pcm = rtd->pcm; |