mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
ASoC: starfive: jh7110_tdm: Drop redundant error messages
The called functions already log failures where appropriate. Return the original error directly and avoid duplicate error messages. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260723111014.54071-5-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
de621dacea
commit
523c01b12e
|
|
@ -559,10 +559,8 @@ static int jh7110_tdm_clk_reset_get(struct platform_device *pdev,
|
|||
tdm->clks[5].id = "tdm";
|
||||
|
||||
ret = devm_clk_bulk_get(&pdev->dev, ARRAY_SIZE(tdm->clks), tdm->clks);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "Failed to get tdm clocks\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
tdm->resets = devm_reset_control_array_get_exclusive(&pdev->dev);
|
||||
if (IS_ERR(tdm->resets)) {
|
||||
|
|
@ -589,28 +587,22 @@ static int jh7110_tdm_probe(struct platform_device *pdev)
|
|||
tdm->dev = &pdev->dev;
|
||||
|
||||
ret = jh7110_tdm_clk_reset_get(pdev, tdm);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "Failed to enable audio-tdm clock\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
jh7110_tdm_init_params(tdm);
|
||||
|
||||
dev_set_drvdata(&pdev->dev, tdm);
|
||||
ret = devm_snd_soc_register_component(&pdev->dev, &jh7110_tdm_component,
|
||||
&jh7110_tdm_dai, 1);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "Failed to register dai\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = devm_snd_dmaengine_pcm_register(&pdev->dev,
|
||||
&jh7110_dmaengine_pcm_config,
|
||||
SND_DMAENGINE_PCM_FLAG_COMPAT);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "Could not register pcm: %d\n", ret);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
pm_runtime_enable(&pdev->dev);
|
||||
if (!pm_runtime_enabled(&pdev->dev)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user