mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
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:
parent
7ae5829ab0
commit
1a1145d1b2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user