summaryrefslogtreecommitdiff
path: root/sound/soc/soc-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-io.c')
-rw-r--r--sound/soc/soc-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c
index 66fcccd79ef..dd89933e2c7 100644
--- a/sound/soc/soc-io.c
+++ b/sound/soc/soc-io.c
@@ -55,7 +55,7 @@ static unsigned int hw_read(struct snd_soc_codec *codec, unsigned int reg)
if (ret == 0)
return val;
else
- return ret;
+ return -1;
}
ret = snd_soc_cache_read(codec, reg, &val);