ASoC: Convert WM8903 driver to register at I2C probe time
The driver now registers the codec and DAI when probed as an I2C device. Also convert the driver to use a single dynamic allocation to simplify error handling. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
@@ -18,11 +18,6 @@
|
||||
extern struct snd_soc_dai wm8903_dai;
|
||||
extern struct snd_soc_codec_device soc_codec_dev_wm8903;
|
||||
|
||||
struct wm8903_setup_data {
|
||||
int i2c_bus;
|
||||
int i2c_address;
|
||||
};
|
||||
|
||||
#define WM8903_MCLK_DIV_2 1
|
||||
#define WM8903_CLK_SYS 2
|
||||
#define WM8903_BCLK 3
|
||||
|
Reference in New Issue
Block a user