Message ID | 87d25sgbf7.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d7c42ff8c34f1c291fcd45c7d56d41aba68c4b13 |
Headers | show |
On Mon, Feb 02, 2015 at 04:54:07AM +0000, Kuninori Morimoto wrote: > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > Current Renesas R-Car sound driver doesn't call > snd_soc_unregiter_component/platform() in .remove. > This patch call these functions. Applied, thanks.
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; }