ASoC: rsnd: call missing snd_soc_unregiter_component/platform()
authorKuninori Morimoto <[email protected]>
Mon, 2 Feb 2015 04:54:07 +0000 (04:54 +0000)
committerMark Brown <[email protected]>
Mon, 2 Feb 2015 18:37:56 +0000 (18:37 +0000)
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 <[email protected]>
Reported-by: Bui Duc Phuc <[email protected]>
Reported-by: Cao Minh Hiep <[email protected]>
Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/sh/rcar/core.c

index 6fb38b879bb65fd6171871dfe84f0326f132f0a9..1b53605f7154394d1746cb0a692953e296848c2a 100644 (file)
@@ -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;
 }