summaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/rcar/adg.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-03-30 01:49:27 +0000
committerMark Brown <broonie@kernel.org>2017-03-30 22:22:32 +0100
commitb5aac5a9adf667f907c34c520e023bc19f8c226c (patch)
tree89953fe7523c605b585bb2c332280cbcfa586301 /sound/soc/sh/rcar/adg.c
parentd7f298197a22f11b38059f257842dac7c30a564c (diff)
downloadlinux-stable-b5aac5a9adf667f907c34c520e023bc19f8c226c.tar.gz
linux-stable-b5aac5a9adf667f907c34c520e023bc19f8c226c.tar.bz2
linux-stable-b5aac5a9adf667f907c34c520e023bc19f8c226c.zip
ASoC: rcar: call missing of_clk_del_provider() when remove
adg is calling of_clk_add_provider() when probe time, thus, remove should call of_clk_del_provider(), it doesn't now. This patch fix this issue. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/adg.c')
-rw-r--r--sound/soc/sh/rcar/adg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c
index 56107454bdb3..9665c1fa7216 100644
--- a/sound/soc/sh/rcar/adg.c
+++ b/sound/soc/sh/rcar/adg.c
@@ -587,5 +587,10 @@ int rsnd_adg_probe(struct rsnd_priv *priv)
void rsnd_adg_remove(struct rsnd_priv *priv)
{
+ struct device *dev = rsnd_priv_to_dev(priv);
+ struct device_node *np = dev->of_node;
+
+ of_clk_del_provider(np);
+
rsnd_adg_clk_disable(priv);
}