]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: ams-delta: Convert to use snd_soc_register_card()
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Sun, 16 Sep 2012 19:17:03 +0000 (21:17 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 17 Sep 2012 11:58:28 +0000 (07:58 -0400)
commitd9e434bd28b6c1354957a414714c1e2b28f8081f
treee63a1f229734a4d9349ac009097bcfa35a471749
parent55d512e245bc7699a8800e23df1a24195dd08217
ASoC: ams-delta: Convert to use snd_soc_register_card()

The old method of registering with the ASoC core by creating a
"soc-audio" platform device no longer works for Amstrad Delta sound card
after recent changes to drvdata handling (commit
0998d0631001288a5974afc0b2a5f568bcdecb4d, 'device-core: Ensure drvdata =
NULL when no driver is bound'.

Use snd_soc_register_card() method instead, as suggested by the ASoC
core generated warning message, and move both the card and codec
platform device registration to the arch board file where those belong.

Created and tested against linux-3.6-rc5.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/mach-omap1/board-ams-delta.c
sound/soc/omap/ams-delta.c