ASoC: ac97: Drop delayed device registration
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 10 Nov 2014 21:41:50 +0000 (22:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 18 Nov 2014 15:37:58 +0000 (15:37 +0000)
commit6794f709b7124ff1e574c4f4c9494418ab56c4b4
tree877945bb9094324a473578de317f6da7f3f99f22
parentca005f324ee38308b319c693f40523d959027acf
ASoC: ac97: Drop delayed device registration

We have all the information and dependencies we need to initialize and
register the device available in snd_soc_new_ac97_codec(). So there is no
need to delay the device registration until after the card itself as been
registered.

This makes the code significantly simpler and also makes it possible to use
the AC'97 device in the CODECs probe function. The later will be required to
be able to convert the AC'97 CODEC drivers to regmap.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-ac97.c
sound/soc/soc-core.c