aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/skylake/skl-debug.c
diff options
context:
space:
mode:
authorVinod Koul <[email protected]>2017-07-03 08:24:47 +0000
committerMark Brown <[email protected]>2017-07-03 15:50:49 +0000
commit7d3d6e0645dd3689e625161b9e312108e66b2b51 (patch)
treec296b0f6fb5439bd684e410b1b95602f6b97fd96 /sound/soc/intel/skylake/skl-debug.c
parentASoC: Intel: Skylake: explicitly add the headers sst-dsp.h (diff)
downloadkernel-7d3d6e0645dd3689e625161b9e312108e66b2b51.tar.gz
kernel-7d3d6e0645dd3689e625161b9e312108e66b2b51.zip
ASoC: Intel: Skylake: Remove driver debugfs exit
For driver debugfs, debugfs_remove_recursive() is called which is not needed as it is already done in ASoC core debugfs. And a device managed memory need not be freed explicitly as device core frees it up. So remove unnecessary skl_debugfs_exit(). Fixes: 5cdf6c09ca9d ASoC: ("Intel: Skylake: Add debugfs support") Reported-by: Julia Lawall <[email protected]> Reported-by: kbuild test robot <[email protected]> Signed-off-by: Vinod Koul <[email protected]> Signed-off-by: Guneshwor Singh <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'sound/soc/intel/skylake/skl-debug.c')
-rw-r--r--sound/soc/intel/skylake/skl-debug.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/intel/skylake/skl-debug.c b/sound/soc/intel/skylake/skl-debug.c
index 34d06abbf796..dc20d91f62e6 100644
--- a/sound/soc/intel/skylake/skl-debug.c
+++ b/sound/soc/intel/skylake/skl-debug.c
@@ -259,11 +259,3 @@ err:
debugfs_remove_recursive(d->fs);
return NULL;
}
-
-void skl_debugfs_exit(struct skl_debug *d)
-{
- debugfs_remove_recursive(d->fs);
-
- kfree(d);
-
-}