From: Lars-Peter Clausen Date: Tue, 18 Mar 2014 08:02:11 +0000 (+0100) Subject: ASoC: Track which components have been registered with snd_soc_register_component() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~21^2~52^2~14^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98e639fb8a3ed1bf2bd512626c3cfc2992a57113;p=pandora-kernel.git ASoC: Track which components have been registered with snd_soc_register_component() snd_soc_unregister_component() takes the parent device of the component as a parameter and then looks up the component based on this. This is a problem if multiple components are registered for the same parent device. Currently drivers do not do this, but some drivers register a CPU DAI component and a platform for the same parent device. This will become a problem once platforms are also made components. To make sure that snd_soc_unregister_component() will not accidentally unregister the platform in such a case only consider components that were registered with snd_soc_register_component(). This is only meant as short term stopgap solution to be able to continue componentisation. Long term we'll need something different. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed