Skip to contentSkip to conversation

ASoC: Intel: remove unused function hsw_pcm_free_modules()

PATCH Applied Jie Yang 2 participants 2 messages May 28, 2015

Subsystems (3)
lore
Share & tools
lore

Jie Yang

author
#0 lore raw

PATCH 1/1 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)

---
 sound/soc/intel/haswell/sst-haswell-pcm.c | 15 ---------------
 1 file changed, 15 deletions(-)
sound/soc/intel/haswell/sst-haswell-pcm.c +0 -15
index bd96629..1557e37 100644
@@ -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;
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Jie Yang

Remove the unused function hsw_pcm_free_modules() to fix the compling warning:

Applied, thanks.