Skip to contentSkip to conversation

ASoC: adi: Add missing return statement.

PATCH In review Andrew Jackson 3 participants 3 messages Dec 31, 2014 – Jan 5, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 7752860..4c23381 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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.

Thanks, never noticed since the clock is shared with other peripherals.

Quoted 20 lines

---
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
index 7752860..4c23381 100644
@@ -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;
maintainer
#2 lore raw
In reply to Andrew Jackson
Quoted 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>