OSDN Git Service

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)
commit965386c97616c401b34cba4e9e3bfc9c6b215359
tree84cff44a034e6496efd756d4f548ee9e2983b075
parent058efb40641845432c52777443b3372dbc97c032
ASoC: rsnd: call unregister for null_hw when removed

commit d6956a7dde6fb ("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: d6956a7dde6fb ("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