Skip to content

Commit

Permalink
ASoC: mediatek: mt8173: reduce log verbosity in probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tzung-Bi Shih authored and Mark Brown committed Dec 24, 2021
1 parent cb00600 commit db3f5ab
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions sound/soc/mediatek/mt8173/mt8173-max98090.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ static int mt8173_max98090_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(codec_node);
of_node_put(platform_node);
Expand Down
3 changes: 0 additions & 3 deletions sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ static int mt8173_rt5650_rt5514_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;
Expand Down
3 changes: 0 additions & 3 deletions sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions sound/soc/mediatek/mt8173/mt8173-rt5650.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ static int mt8173_rt5650_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;
Expand Down

0 comments on commit db3f5ab

Please sign in to comment.