summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jackson <Andrew.Jackson@arm.com>2014-12-31 16:20:37 +0000
committerMark Brown <broonie@kernel.org>2015-01-05 20:16:20 +0000
commitae6f636b8b2ea9d297a07fc7ef8ae54707d67b36 (patch)
tree85ff187ffb3b6c9e7c32bfa6eb3e78d46556c0f8
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
ASoC: adi: Add missing return statement.
The probe routine was disabling the clock even if the system was configured successfully. Add a return statement to leave clocks enabled. Signed-off-by: Andrew Jackson <Andrew.Jackson@arm.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/adi/axi-i2s.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/adi/axi-i2s.c b/sound/soc/adi/axi-i2s.c
index 7752860f723..4c23381727a 100644
--- a/sound/soc/adi/axi-i2s.c
+++ b/sound/soc/adi/axi-i2s.c
@@ -240,6 +240,8 @@ static int axi_i2s_probe(struct platform_device *pdev)
if (ret)
goto err_clk_disable;
+ return 0;
+
err_clk_disable:
clk_disable_unprepare(i2s->clk);
return ret;