ASoC: adi: Add missing return statement.
authorAndrew Jackson <Andrew.Jackson@arm.com>
Wed, 31 Dec 2014 16:20:37 +0000 (16:20 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 5 Jan 2015 20:16:20 +0000 (20:16 +0000)
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>
sound/soc/adi/axi-i2s.c

index 7752860f7230e2821ac906715c06007543e84499..4c23381727a1ed1c53406b596ff04d9cd2e68577 100644 (file)
@@ -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;