mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: ti: omap-abe-twl6040: Preserve error code and drop redundant log
Return the original errors from the OF parsing helpers and remove the redundant error messages, as the helpers already report failures. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Link: https://patch.msgid.link/20260716103911.77652-5-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
1a1145d1b2
commit
e0b2ab952d
|
|
@ -234,16 +234,13 @@ static int omap_abe_probe(struct platform_device *pdev)
|
|||
card->dapm_routes = audio_map;
|
||||
card->num_dapm_routes = ARRAY_SIZE(audio_map);
|
||||
|
||||
if (snd_soc_of_parse_card_name(card, "ti,model")) {
|
||||
dev_err(&pdev->dev, "Card name is not provided\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
ret = snd_soc_of_parse_card_name(card, "ti,model");
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = snd_soc_of_parse_audio_routing(card, "ti,audio-routing");
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "Error while parsing DAPM routing\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
dai_node = of_parse_phandle(node, "ti,mcpdm", 0);
|
||||
if (!dai_node) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user