ASoC: Failed to create component debugfs directory
diff mbox

Message ID CAOMZO5CA99p+2DYrbWQnLzh5Lj8syX4j18V8R8WPV2KDZz-DVQ@mail.gmail.com
State New
Headers show

Commit Message

Fabio Estevam Feb. 20, 2018, 7:37 p.m. UTC
On Tue, Feb 20, 2018 at 4:30 PM, Lars-Peter Clausen <lars@metafoo.de> wrote:

> Because on linux-next they are all components now, before one was a
> platform, the other a component. So they were created in different
> sub-directories. Now they are created in the same sub-directory.

Thanks for your clarification.

What is the best way to avoid the "Failed to create
component debugfs directory" warning?

 static void soc_cleanup_component_debugfs(struct snd_soc_component *component)

Thanks

Patch
diff mbox

--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -319,8 +319,6 @@  static void soc_init_component_debugfs(struct
snd_soc_component *component)
        }

        if (!component->debugfs_root) {
-               dev_warn(component->dev,
-                       "ASoC: Failed to create component debugfs directory\n");
                return;
        }


or

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 3987673..270109c 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -329,6 +329,8 @@  static void soc_init_component_debugfs(struct
snd_soc_component *component)

        if (component->init_debugfs)
                component->init_debugfs(component);
+
+       component->card->debugfs_card_root = NULL;
 }