diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-02-01 23:54:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-02 13:37:56 -0500 |
commit | d7c42ff8c34f1c291fcd45c7d56d41aba68c4b13 (patch) | |
tree | eceaf26dde0119f1d2515a0dcfd70855270229e6 | |
parent | d1f83d6ef43bf1b4a3d19805098b3a9724047479 (diff) |
ASoC: rsnd: call missing snd_soc_unregiter_component/platform()
Current Renesas R-Car sound driver doesn't call
snd_soc_unregiter_component/platform() in .remove.
This patch call these functions.
Reported-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Reported-by: Bui Duc Phuc <bd-phuc@jinso.co.jp>
Reported-by: Cao Minh Hiep <cm-hiep@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 6fb38b879bb6..1b53605f7154 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -1299,6 +1299,9 @@ static int rsnd_remove(struct platform_device *pdev) | |||
1299 | ret |= rsnd_dai_call(remove, &rdai->capture, priv); | 1299 | ret |= rsnd_dai_call(remove, &rdai->capture, priv); |
1300 | } | 1300 | } |
1301 | 1301 | ||
1302 | snd_soc_unregister_component(&pdev->dev); | ||
1303 | snd_soc_unregister_platform(&pdev->dev); | ||
1304 | |||
1302 | return ret; | 1305 | return ret; |
1303 | } | 1306 | } |
1304 | 1307 | ||