summaryrefslogtreecommitdiffstats
path: root/sound/soc/kirkwood
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-08-04 21:23:03 +0200
committerMark Brown <broonie@linaro.org>2013-08-05 18:11:12 +0200
commitaf64d7341ab51335eeb03453180cf200b120ec43 (patch)
treed800ff754964af716799f059dd56ee974fd6c22b /sound/soc/kirkwood
parentASoC: kirkwood: merge struct kirkwood_dma_priv with struct kirkwood_dma_data (diff)
downloadlinux-af64d7341ab51335eeb03453180cf200b120ec43.tar.xz
linux-af64d7341ab51335eeb03453180cf200b120ec43.zip
ASoC: kirkwood: Free external clock if it is a duplicate of internal
[Remaining patch from "ASoC: kirkwood: use devm_clk_get() for the external clock" -- broonie] Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/kirkwood')
-rw-r--r--sound/soc/kirkwood/kirkwood-i2s.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c
index ba7203995369..0109b1e8449a 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");