ASoC: Convert WM8900 to do more work at I2C probe time
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 10 Dec 2008 15:38:36 +0000 (15:38 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 10 Dec 2008 19:47:40 +0000 (19:47 +0000)
commit78e19a39d3985e2a06354493a70a200c0d432de5
treef23c4a127696ccff5d378298790a53ccbb22ff61
parent0d0cf00a7fc63cee9a4c4a3b8612879b4f7f42ba
ASoC: Convert WM8900 to do more work at I2C probe time

Redo the instantiation of the WM8900 to do most of the initialisation
work when the I2C driver probes rather than when the ASoC device is
instantiated, registering the codec with the ASoC core when done.

Also move all dynamic allocations into a single kmalloc() to simplify
error handling and rename the I2C driver to make output more sensible.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8900.c
sound/soc/codecs/wm8900.h