summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@google.com>2021-12-24 07:47:18 +0100
committerMark Brown <broonie@kernel.org>2021-12-24 15:06:55 +0100
commitdb3f5abe68ea5ea39d84e6af4f0f2ce5d5e2daf4 (patch)
treecd396e9cddc89aa78fb68f88dd69c77f314d03e2 /sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c
parentASoC: mediatek: mt8183: fix device_node leak (diff)
downloadlinux-db3f5abe68ea5ea39d84e6af4f0f2ce5d5e2daf4.tar.xz
linux-db3f5abe68ea5ea39d84e6af4f0f2ce5d5e2daf4.zip
ASoC: mediatek: mt8173: reduce log verbosity in probe()
Eliminates error messages if snd_soc_register_card() failed. Kernel emits messages if device probe error anyway. Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20211224064719.2031210-4-tzungbi@google.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c')
-rw-r--r--sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c
index 8df2ff2f2aab..5716d9299066 100644
--- a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c
+++ b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c
@@ -282,9 +282,6 @@ static int mt8173_rt5650_rt5676_dev_probe(struct platform_device *pdev)
card->dev = &pdev->dev;
ret = devm_snd_soc_register_card(&pdev->dev, card);
- if (ret)
- dev_err(&pdev->dev, "%s snd_soc_register_card fail %d\n",
- __func__, ret);
of_node_put(platform_node);
return ret;