]> git.baikalelectronics.ru Git - kernel.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)
commit74ce1f88e911a997f5e99fa954229e71e7e6172f
tree6822112c2ba0acad5e646599efed4aa6a3fbcd23
parent64fe6e80a9bbb9cc51685073ad088bd4fae4fd6e
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