[alsa-devel] [PATCH] ASoc: kirkwood: free the external clock when same as the internal one
27 Jul
2013
27 Jul
'13
9:52 a.m.
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/
4116
Age (days ago)
4116
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jean-Francois Moine