11 Sep
2012
11 Sep
'12
11:05 p.m.
Timur Tabi wrote:
Use snd_soc_register_card() instead of platform_device_alloc("soc-audio") to register the sound card from the machine drivers.
Although platform_device_alloc is officially deprecated, it is still used by several other drivers. Unfortunately, something is broken somewhere and the Freescale drivers don't register properly when using it. Since we need to transition to snd_soc_register_card() anyway, this fixes the problem and updates our code at the same time.
Signed-off-by: Timur Tabi timur@freescale.com
Ugh, I forgot to update the _remove function. I'll post a v3 patch soon. Sorry.
--
Timur Tabi
Linux kernel developer at Freescale