[alsa-devel] [PATCH 2/2] ASoC: rsnd: call missing snd_soc_unregiter_component/platform()
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Mon Feb 2 05:54:07 CET 2015
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
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 at jinso.co.jp>
Reported-by: Bui Duc Phuc <bd-phuc at jinso.co.jp>
Reported-by: Cao Minh Hiep <cm-hiep at jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/sh/rcar/core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 6fb38b8..1b53605 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)
ret |= rsnd_dai_call(remove, &rdai->capture, priv);
}
+ snd_soc_unregister_component(&pdev->dev);
+ snd_soc_unregister_platform(&pdev->dev);
+
return ret;
}
--
1.7.9.5
More information about the Alsa-devel
mailing list