0017-bcm2835-i2s-Eliminate-debugfs-directory-error.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From c94751eae717c8d87ef234389ef4795ce1e432f5 Mon Sep 17 00:00:00 2001
  2. From: Matthias Reichl <hias@horus.com>
  3. Date: Sun, 11 Oct 2015 15:49:51 +0200
  4. Subject: [PATCH] bcm2835-i2s: Eliminate debugfs directory error
  5. Code ported from bcm2708-i2s driver in Raspberry Pi tree.
  6. RPi commit fd7d7a3dbe9262d16971ef81c234ed28c6499dd7 ("bcm2708:
  7. Eliminate i2s debugfs directory error")
  8. Qualify the two regmap ranges uses by bcm2708-i2s ('-i2s' and '-clk')
  9. to avoid the name clash when registering debugfs entries.
  10. Signed-off-by: Matthias Reichl <hias@horus.com>
  11. ---
  12. sound/soc/bcm/bcm2835-i2s.c | 2 ++
  13. 1 file changed, 2 insertions(+)
  14. --- a/sound/soc/bcm/bcm2835-i2s.c
  15. +++ b/sound/soc/bcm/bcm2835-i2s.c
  16. @@ -782,6 +782,7 @@ static const struct regmap_config bcm283
  17. .precious_reg = bcm2835_i2s_precious_reg,
  18. .volatile_reg = bcm2835_i2s_volatile_reg,
  19. .cache_type = REGCACHE_RBTREE,
  20. + .name = "i2s",
  21. },
  22. {
  23. .reg_bits = 32,
  24. @@ -790,6 +791,7 @@ static const struct regmap_config bcm283
  25. .max_register = BCM2835_CLK_PCMDIV_REG,
  26. .volatile_reg = bcm2835_clk_volatile_reg,
  27. .cache_type = REGCACHE_RBTREE,
  28. + .name = "clk",
  29. },
  30. };