]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: tegra: register 'platform' from DAIs, get rid of pdev
authorStephen Warren <swarren@wwwdotorg.org>
Tue, 20 Mar 2012 20:55:49 +0000 (14:55 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Apr 2012 10:28:28 +0000 (11:28 +0100)
commit518de86ba106185212ec30fea501be024a12f5db
tree6822112c2ba0acad5e646599efed4aa6a3fbcd23
parent1ae93b9d34c26494eea6c127c179b4c88c78bab7
ASoC: tegra: register 'platform' from DAIs, get rid of pdev

Previously, the ASoC 'platform' (PCM/DMA) object was instantiated via a
platform_device. This didn't represent the hardware well, since there
was no separate hardware associated with this platform_device; it was a
virtual device with sole purpose to call snd_soc_register_platform().
This mechanism required all board files to register this device, and all
ASoC machine drivers to create and register this device when booting
using device tree.

This change removes the platform_device completely. Each Tegra DAI now
registers the ASoC 'platform' itself. Machine drivers are adjusted for
the new 'platform' name.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra_alc5632.c
sound/soc/tegra/tegra_i2s.c
sound/soc/tegra/tegra_pcm.c
sound/soc/tegra/tegra_pcm.h
sound/soc/tegra/tegra_spdif.c
sound/soc/tegra/tegra_wm8903.c
sound/soc/tegra/trimslice.c