|
@@ -2802,10 +2802,10 @@ static const struct file_operations dpcm_state_fops = {
|
|
|
.llseek = default_llseek,
|
|
|
};
|
|
|
|
|
|
-int soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd)
|
|
|
+void soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd)
|
|
|
{
|
|
|
if (!rtd->dai_link)
|
|
|
- return 0;
|
|
|
+ return;
|
|
|
|
|
|
rtd->debugfs_dpcm_root = debugfs_create_dir(rtd->dai_link->name,
|
|
|
rtd->card->debugfs_card_root);
|
|
@@ -2813,13 +2813,11 @@ int soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd)
|
|
|
dev_dbg(rtd->dev,
|
|
|
"ASoC: Failed to create dpcm debugfs directory %s\n",
|
|
|
rtd->dai_link->name);
|
|
|
- return -EINVAL;
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
rtd->debugfs_dpcm_state = debugfs_create_file("state", 0444,
|
|
|
rtd->debugfs_dpcm_root,
|
|
|
rtd, &dpcm_state_fops);
|
|
|
-
|
|
|
- return 0;
|
|
|
}
|
|
|
#endif
|