]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: call unregister for null_hw when removed
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 27 May 2021 02:40:22 +0000 (11:40 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 27 May 2021 10:15:26 +0000 (11:15 +0100)
commitf70ea59fa3edf6b8cf0beafafff98144830bb9de
tree84cff44a034e6496efd756d4f548ee9e2983b075
parent5dc882fe7ed1a1271fb7a370cd518cc5ffa46a6c
ASoC: rsnd: call unregister for null_hw when removed

commit f7b97dfc99720 ("ASoC: rsnd: add null CLOCKIN support")
added null_clk, but it is using local static valuable.
It will be leaked if rsnd driver was removed.
This patch moves it to priv, and call unregister when removing.

Fixes: f7b97dfc99720 ("ASoC: rsnd: add null CLOCKIN support")
Link: https://lore.kernel.org/r/87tumsoe2p.wl-kuninori.morimoto.gx@renesas.com
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Message-Id: <877djknbl5.wl-kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/adg.c
sound/soc/sh/rcar/rsnd.h