diff options
| author | Trevor Wu <[email protected]> | 2023-05-26 17:31:48 +0800 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-06-02 13:29:09 +0100 |
| commit | 8ad13cdc92f66333ae475251ae7722313f84e496 (patch) | |
| tree | 0b2cc619500e287d89dc7aa44fcd89518115f935 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | c0e7390e6d3f42b9a15a0e72add21facb8e17790 (diff) | |
ASoC: soc-dapm.c: clean up debugfs for freed widget
When a widget is added to dapm via snd_soc_dapm_new_widgets,
dapm_debugfs_add_widget is also called to create a corresponding debugfs
file. However, when a widget is freed by snd_soc_dapm_free_widget, the
corresponding debugfs is not cleared. As a result, the freed widget is
still seen in the dapm directory.
This patch adds dapm_debugfs_free_widget to free the debugfs of a
specified widget, and it's called at snd_soc_dapm_free_widget to clean
up the debugfs for freed widget.
Signed-off-by: Trevor Wu <[email protected]>
Reviewed-by: Alexandre Mergnat <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions