Skip to contentSkip to conversation

ASoc: kirkwood: free the external clock when same as the internal one

PATCH New Jean-Francois Moine 1 participant 1 message Jul 27, 2013

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

PATCH 1/1 ASoc: kirkwood: free the external clock when same as the internal one

---
sound/soc/kirkwood/{kirkwood-i2s.c | 1 +

 1 file changed, 1 insertion(+)
sound/soc/kirkwood/kirkwood-i2s.c renamed from sound/soc/kirkwood/kirkwood-i2s.c~ +1 -0
index ba72039..bbadf53 100644
@@ -495,6 +495,7 @@ static int kirkwood_i2s_dev_probe(struct platform_device *pdev)
 	priv->extclk = devm_clk_get(&pdev->dev, "extclk");
 	if (!IS_ERR(priv->extclk)) {
 		if (priv->extclk == priv->clk) {
+			devm_clk_put(&pdev->dev, priv->extclk);
 			priv->extclk = ERR_PTR(-EINVAL);
 		} else {
 			dev_info(&pdev->dev, "found external clock\n");
Signature · 6 lines
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel