diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 595fe20bbc6d3699ba0fd291c85b2414683e5643..8531b490f6f66a8aa1ebd5fb98c245b7815d97ef 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -3510,7 +3510,7 @@ int snd_soc_of_parse_audio_routing(struct snd_soc_card *card, if (!routes) { dev_err(card->dev, "ASoC: Could not allocate DAPM route table\n"); - return -EINVAL; + return -ENOMEM; } for (i = 0; i < num_routes; i++) {