From: Kuninori Morimoto Date: Mon, 2 Feb 2015 04:54:07 +0000 (+0000) Subject: ASoC: rsnd: call missing snd_soc_unregiter_component/platform() X-Git-Tag: v4.0-rc1~129^2~13^2~4^3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d7c42ff8c34f1c291fcd45c7d56d41aba68c4b13;p=karo-tx-linux.git 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 Reported-by: Bui Duc Phuc Reported-by: Cao Minh Hiep Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- 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) ret |= rsnd_dai_call(remove, &rdai->capture, priv); } + snd_soc_unregister_component(&pdev->dev); + snd_soc_unregister_platform(&pdev->dev); + return ret; }