122-ASoC-atmel-i2s-do-not-warn-if-muxclk-is-missing.patch 1.2 KB

123456789101112131415161718192021222324252627282930
  1. From f4389949bf422fe04775c17b833100fa0e95ea68 Mon Sep 17 00:00:00 2001
  2. From: Codrin Ciubotariu <[email protected]>
  3. Date: Tue, 3 Nov 2020 12:05:54 +0200
  4. Subject: [PATCH 122/247] ASoC: atmel-i2s: do not warn if muxclk is missing
  5. Besides the fact that muxclk is optional, muxclk can be set using
  6. assigned-clocks, removing the need to set it in driver. The warning is
  7. thus unneeded, so we can transform it in a debug print, eventually to just
  8. reflect that muxclk was not set by the driver.
  9. Signed-off-by: Codrin Ciubotariu <[email protected]>
  10. Link: https://lore.kernel.org/r/[email protected]
  11. Signed-off-by: Mark Brown <[email protected]>
  12. ---
  13. sound/soc/atmel/atmel-i2s.c | 4 ++--
  14. 1 file changed, 2 insertions(+), 2 deletions(-)
  15. --- a/sound/soc/atmel/atmel-i2s.c
  16. +++ b/sound/soc/atmel/atmel-i2s.c
  17. @@ -581,8 +581,8 @@ static int atmel_i2s_sama5d2_mck_init(st
  18. err = PTR_ERR(muxclk);
  19. if (err == -EPROBE_DEFER)
  20. return -EPROBE_DEFER;
  21. - dev_warn(dev->dev,
  22. - "failed to get the I2S clock control: %d\n", err);
  23. + dev_dbg(dev->dev,
  24. + "failed to get the I2S clock control: %d\n", err);
  25. return 0;
  26. }