summaryrefslogtreecommitdiff
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2019-05-30 16:47:43 +0100
committerMark Brown <broonie@kernel.org>2019-05-30 16:47:43 +0100
commit79b3b7c4a396b9fa1963ac70e853998633e8151d (patch)
treec1e507b4a6fff773ec81e90e1be11f1b35e773b6 /sound/soc/soc-dapm.c
parente13ef82a9ab83dd21d8dd43ef9f5e8bf5b101106 (diff)
parent1f2675f6655838aaf910f911fd0abc821e3ff3df (diff)
Merge branch 'asoc-5.2' into asoc-5.3
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 511ed84b147b..6b44b4a78b8e 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -2194,7 +2194,10 @@ static void dapm_debugfs_add_widget(struct snd_soc_dapm_widget *w)
static void dapm_debugfs_cleanup(struct snd_soc_dapm_context *dapm)
{
+ if (!dapm->debugfs_dapm)
+ return;
debugfs_remove_recursive(dapm->debugfs_dapm);
+ dapm->debugfs_dapm = NULL;
}
#else