diff options
author | Daniel Mack <daniel@zonque.org> | 2018-05-19 02:01:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-21 06:55:03 -0400 |
commit | 637917b1efe6a16cc4151f6508e82fc473814fe3 (patch) | |
tree | a3541572f304cb0b79b68809ca928d0381e0c2a0 /sound/soc/soc-pcm.c | |
parent | 9ff3036a60837b6ee0b7f70180f39ac29deb8cc2 (diff) |
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: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r-- | sound/soc/soc-pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 87c9af2158d0..2df4719a84db 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c | |||
@@ -498,7 +498,7 @@ static int soc_pcm_open(struct snd_pcm_substream *substream) | |||
498 | if (__ret < 0) { | 498 | if (__ret < 0) { |
499 | dev_err(component->dev, | 499 | dev_err(component->dev, |
500 | "ASoC: can't open component %s: %d\n", | 500 | "ASoC: can't open component %s: %d\n", |
501 | component->name, ret); | 501 | component->name, __ret); |
502 | ret = __ret; | 502 | ret = __ret; |
503 | } | 503 | } |
504 | } | 504 | } |