ASoC: adi: Add missing return statement.
PATCH 1/1 ASoC: adi: Add missing return statement.
From: Andrew Jackson <[email protected]>
The probe routine was disabling the clock even
if the system was configured successfully. Add
a return statement to leave clocks enabled.
---
Spotted while reviewing clock preparation
sound/soc/adi/axi-i2s.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/adi/axi-i2s.c +2 -0
@@ -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;
Signature · 1 line
1.7.1
Quoted 7 lines · Andrew Jackson
From: Andrew Jackson <[email protected]>
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 <[email protected]>
Thanks, never noticed since the clock is shared with other peripherals.
Quoted 20 lines
---
Spotted while reviewing clock preparationsound/soc/adi/axi-i2s.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)sound/soc/adi/axi-i2s.c +2
-0@@ -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;
Mark Brown
maintainerQuoted 5 lines · Andrew Jackson
From: Andrew Jackson <[email protected]>
The probe routine was disabling the clock even
if the system was configured successfully. Add
a return statement to leave clocks enabled.
Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150105/effb3187/attachment-0001.sig>