Commit 637917b1 authored by Daniel Mack's avatar Daniel Mack Committed by Mark Brown

ASoC: core: fix return code in error message

Log the correct error code in case the .open() call to a component fails.
Signed-off-by: default avatarDaniel Mack <daniel@zonque.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9ff3036a
...@@ -498,7 +498,7 @@ static int soc_pcm_open(struct snd_pcm_substream *substream) ...@@ -498,7 +498,7 @@ static int soc_pcm_open(struct snd_pcm_substream *substream)
if (__ret < 0) { if (__ret < 0) {
dev_err(component->dev, dev_err(component->dev,
"ASoC: can't open component %s: %d\n", "ASoC: can't open component %s: %d\n",
component->name, ret); component->name, __ret);
ret = __ret; ret = __ret;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment