]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ams-delta: Convert to use snd_soc_register_card()
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 3 Oct 2012 10:46:57 +0000 (12:46 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 4 Oct 2012 17:50:36 +0000 (18:50 +0100)
commit1e58dc34ceaf106e886c20597a6227792b4ede7d
tree7f0713d5ab53f7df3c25bfe0f05a2a3d78b4b945
parent66561f7071f523ddc1435514455637f2fd7703a8
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
c3e213df083439e7397e789fd95ded71e7b3add3, '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