ASoC: ti: j721e-evm: Return the original error from card name parsing

Return the error from snd_soc_of_parse_card_name() directly instead of
converting it to -ENODEV. The helper already logs the error, so drop the
redundant dev_err().

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260716103911.77652-4-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
bui duc phuc 2026-07-16 17:39:04 +07:00 committed by Mark Brown
parent 7ae5829ab0
commit 1a1145d1b2
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -868,10 +868,9 @@ static int j721e_soc_probe(struct platform_device *pdev)
card->num_dapm_routes = ARRAY_SIZE(j721e_cpb_dapm_routes);
card->fully_routed = 1;
if (snd_soc_of_parse_card_name(card, "model")) {
dev_err(&pdev->dev, "Card name is not provided\n");
return -ENODEV;
}
ret = snd_soc_of_parse_card_name(card, "model");
if (ret)
return ret;
link_cnt = 0;
conf_cnt = 0;