ASoC: fsl: use snd_soc_register_card to register the card
authorTimur Tabi <timur@freescale.com>
Fri, 14 Sep 2012 21:14:34 +0000 (16:14 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 19 Sep 2012 02:32:44 +0000 (22:32 -0400)
commit13c57e5b868b4f023f6436d8c6a079eaffd7f3a8
tree22120beedac85988c1c7abe794f7ddd8b635bb6c
parentd41789b2660e5b18b8401bf83ebcd502916c2cb5
ASoC: fsl: use snd_soc_register_card to register the card

Use snd_soc_register_card() instead of platform_device_alloc("soc-audio")
to register the sound card from the machine drivers.  The use of
platform_device_alloc is deprecated.

Although several other drivers still use platform_device_alloc(), the
Freescale drivers were not using it to pass driver data.  Instead of fixing
the driver data usage, it's better to replace the deprecated code.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/mpc8610_hpcd.c
sound/soc/fsl/p1022_ds.c