alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoc: kirkwood: free the external clock when same as the internal one
@ 2013-07-27  6:52 Jean-Francois Moine
  0 siblings, 0 replies; only message in thread
From: Jean-Francois Moine @ 2013-07-27  6:52 UTC (permalink / raw)
  To: Mark Brown, Russell King, alsa-devel

 Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
---
sound/soc/kirkwood/{kirkwood-i2s.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c
index ba72039..bbadf53 100644
--- a/sound/soc/kirkwood/kirkwood-i2s.c~
+++ b/sound/soc/kirkwood/kirkwood-i2s.c
@@ -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");


-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-27  6:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-27  6:52 [PATCH] ASoc: kirkwood: free the external clock when same as the internal one Jean-Francois Moine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).