12 Sep
2012
12 Sep
'12
3:32 a.m.
On Tue, Sep 11, 2012 at 11:23:26AM -0500, 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.
I did explain what's wrong here - it's the use of driver data.