diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2023-11-27 14:34:42 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-11-27 15:27:19 +0100 |
commit | 5c0e047ab629bcb5efa94de63fcdc75c9fe69516 (patch) | |
tree | 51b8d5635dd19f18e13831102d050be34f40583b /sound | |
parent | Linux 6.7-rc3 (diff) | |
download | linux-5c0e047ab629bcb5efa94de63fcdc75c9fe69516.tar.xz linux-5c0e047ab629bcb5efa94de63fcdc75c9fe69516.zip |
ASoC: Intel: sof_sdw: Make use of dev_err_probe()
The devm_snd_soc_register_card() can return with
-EPROBE_DEFER and in that case the driver should not print
an error message.
Closes: https://github.com/thesofproject/linux/issues/4668
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Chao Song <chao.song@linux.intel.com>
Link: https://lore.kernel.org/r/20231127133448.18449-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/intel/boards/sof_sdw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 3312ad8a563b..199490f88653 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -1946,7 +1946,7 @@ static int mc_probe(struct platform_device *pdev) /* Register the card */ ret = devm_snd_soc_register_card(card->dev, card); if (ret) { - dev_err(card->dev, "snd_soc_register_card failed %d\n", ret); + dev_err_probe(card->dev, ret, "snd_soc_register_card failed %d\n", ret); mc_dailink_exit_loop(card); return ret; } |