diff options
author | Mark Brown <broonie@kernel.org> | 2023-09-26 16:14:44 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-26 16:14:44 +0200 |
commit | af08458988cb5dd4b4ff87cfb9da81c6d2c8ef7a (patch) | |
tree | 5a71f1c4e3099d7cfe4c6f880e707173b6ec9cda /sound/soc/generic/simple-card.c | |
parent | ASoC: convert asoc_xxx() to snd_soc_xxx() (diff) | |
parent | ASoC: fsl-asoc-card: use integer type for fll_id and pll_id (diff) | |
download | linux-af08458988cb5dd4b4ff87cfb9da81c6d2c8ef7a.tar.xz linux-af08458988cb5dd4b4ff87cfb9da81c6d2c8ef7a.zip |
ASoC: Merge up fixes
For the benefit of CI.
Diffstat (limited to 'sound/soc/generic/simple-card.c')
-rw-r--r-- | sound/soc/generic/simple-card.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index a88812ab3ed1..b95b86315502 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -758,10 +758,12 @@ static int simple_probe(struct platform_device *pdev) struct snd_soc_dai_link *dai_link = priv->dai_link; struct simple_dai_props *dai_props = priv->dai_props; + ret = -EINVAL; + cinfo = dev->platform_data; if (!cinfo) { dev_err(dev, "no info for asoc-simple-card\n"); - return -EINVAL; + goto err; } if (!cinfo->name || @@ -770,7 +772,7 @@ static int simple_probe(struct platform_device *pdev) !cinfo->platform || !cinfo->cpu_dai.name) { dev_err(dev, "insufficient simple_util_info settings\n"); - return -EINVAL; + goto err; } cpus = dai_link->cpus; |