summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2017-03-08 19:42:47 +0300
committerMark Brown <broonie@kernel.org>2017-03-13 19:09:10 +0300
commit1bb06ada038548b4e2449159e80badf106bb779f (patch)
treecda26657a58cddd21761a6dd411a21c66c396896
parented864461bfbdacefc242d4c0675989915a1431b0 (diff)
downloadlinux-1bb06ada038548b4e2449159e80badf106bb779f.tar.xz
ASoC: cs35l35: Add missing return in probe
A return statement is missing just before the error paths at the end of probe. This causes us to fall straight into the error path and disable the supplies and re-enable reset, as these are only controlled during probe this causes the part to no longer function. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/cs35l35.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs35l35.c b/sound/soc/codecs/cs35l35.c
index 260ed42c71e9..48b45dc904ea 100644
--- a/sound/soc/codecs/cs35l35.c
+++ b/sound/soc/codecs/cs35l35.c
@@ -1509,6 +1509,8 @@ static int cs35l35_i2c_probe(struct i2c_client *i2c_client,
goto err;
}
+ return 0;
+
err:
regulator_bulk_disable(cs35l35->num_supplies,
cs35l35->supplies);