diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2010-11-05 14:35:20 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-06 11:28:35 -0400 |
commit | d6ce4cf3967dca78f967cd0bf70b175084885f40 (patch) | |
tree | b32d43669eae3bfd86bd40a1a4590edc0d73ab6e | |
parent | a6052154944c822993d04ca8f8d8926e8b73b749 (diff) |
ASoC: Move codec debugfs directories under parent card directory
Make use of sound card debugfs directory and move codec directories under
the parent card debugfs directory.
debugfs/asoc/{codec dir} -> debugfs/asoc/{card->name}/{codec dir}.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/soc-core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index b0f635ccf176..57e5d7bfb130 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -238,8 +238,10 @@ static const struct file_operations codec_reg_fops = { | |||
238 | 238 | ||
239 | static void soc_init_codec_debugfs(struct snd_soc_codec *codec) | 239 | static void soc_init_codec_debugfs(struct snd_soc_codec *codec) |
240 | { | 240 | { |
241 | codec->debugfs_codec_root = debugfs_create_dir(codec->name , | 241 | struct dentry *debugfs_card_root = codec->card->debugfs_card_root; |
242 | debugfs_root); | 242 | |
243 | codec->debugfs_codec_root = debugfs_create_dir(codec->name, | ||
244 | debugfs_card_root); | ||
243 | if (!codec->debugfs_codec_root) { | 245 | if (!codec->debugfs_codec_root) { |
244 | printk(KERN_WARNING | 246 | printk(KERN_WARNING |
245 | "ASoC: Failed to create codec debugfs directory\n"); | 247 | "ASoC: Failed to create codec debugfs directory\n"); |