mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
ASoC: spacemit: 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> Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Link: https://patch.msgid.link/20260731101539.36290-1-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
abea6e6abd
commit
a6604d9fb2
|
|
@ -478,7 +478,7 @@ static int spacemit_i2s_probe(struct platform_device *pdev)
|
|||
|
||||
i2s->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
|
||||
if (IS_ERR(i2s->base))
|
||||
return dev_err_probe(i2s->dev, PTR_ERR(i2s->base), "failed to map registers\n");
|
||||
return PTR_ERR(i2s->base);
|
||||
|
||||
i2s->reset = devm_reset_control_get_exclusive(&pdev->dev, NULL);
|
||||
if (IS_ERR(i2s->reset))
|
||||
|
|
@ -495,7 +495,7 @@ static int spacemit_i2s_probe(struct platform_device *pdev)
|
|||
&spacemit_i2s_component,
|
||||
dai, 1);
|
||||
if (ret)
|
||||
return dev_err_probe(i2s->dev, ret, "failed to register component");
|
||||
return ret;
|
||||
|
||||
return devm_snd_dmaengine_pcm_register(&pdev->dev, &spacemit_dmaengine_pcm_config, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user