diff options
author | Vinod Koul <vinod.koul@intel.com> | 2017-06-30 09:06:05 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-30 13:27:55 +0100 |
commit | 5cdf6c09ca9de3f037ba2d770206f3374459602d (patch) | |
tree | e9513d3eb62be6b9dfc7ca88f197e217c866285c /sound/soc/intel/skylake/skl.c | |
parent | 46b5a4d249ac6798cee28de9f51ef80777d16a3e (diff) | |
download | talos-obmc-linux-5cdf6c09ca9de3f037ba2d770206f3374459602d.tar.gz talos-obmc-linux-5cdf6c09ca9de3f037ba2d770206f3374459602d.zip |
ASoC: Intel: Skylake: Add debugfs support
For debug, the kernel debugfs mechanism is available. We can add various
debug options for driver like module configuration read, firmware register
read etc.
This patch adds debugfs as a child to asoc plaform component and caller is
added for skylake driver to do init and cleanup of debugfs.
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Vunny Sodhi <vunnyx.sodhi@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl.c')
-rw-r--r-- | sound/soc/intel/skylake/skl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index e761550c6dad..410ce83f4a49 100644 --- a/sound/soc/intel/skylake/skl.c +++ b/sound/soc/intel/skylake/skl.c @@ -866,6 +866,8 @@ static void skl_remove(struct pci_dev *pci) /* codec removal, invoke bus_device_remove */ snd_hdac_ext_bus_device_remove(ebus); + skl_debugfs_exit(skl->debugfs); + skl->debugfs = NULL; skl_platform_unregister(&pci->dev); skl_free_dsp(skl); skl_machine_device_unregister(skl); |