diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-21 07:59:52 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-21 12:00:17 -0500 |
commit | cb555318ca5dd5c1426c7a639aa1e90a88c8f024 (patch) | |
tree | 117c5de8bfe32088eab7ea551e2545aa741868d3 /sound | |
parent | 70a28f841d6744c53320c789c2603ac4318649b2 (diff) |
ASoC: Use table based init for wm8731_snd_controls
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8731.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 7e5ec03f6f8d..f5161f383fc4 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c | |||
@@ -553,9 +553,6 @@ static int wm8731_probe(struct snd_soc_codec *codec) | |||
553 | /* Disable bypass path by default */ | 553 | /* Disable bypass path by default */ |
554 | snd_soc_update_bits(codec, WM8731_APANA, 0x8, 0); | 554 | snd_soc_update_bits(codec, WM8731_APANA, 0x8, 0); |
555 | 555 | ||
556 | snd_soc_add_controls(codec, wm8731_snd_controls, | ||
557 | ARRAY_SIZE(wm8731_snd_controls)); | ||
558 | |||
559 | /* Regulators will have been enabled by bias management */ | 556 | /* Regulators will have been enabled by bias management */ |
560 | regulator_bulk_disable(ARRAY_SIZE(wm8731->supplies), wm8731->supplies); | 557 | regulator_bulk_disable(ARRAY_SIZE(wm8731->supplies), wm8731->supplies); |
561 | 558 | ||
@@ -595,6 +592,8 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8731 = { | |||
595 | .num_dapm_widgets = ARRAY_SIZE(wm8731_dapm_widgets), | 592 | .num_dapm_widgets = ARRAY_SIZE(wm8731_dapm_widgets), |
596 | .dapm_routes = wm8731_intercon, | 593 | .dapm_routes = wm8731_intercon, |
597 | .num_dapm_routes = ARRAY_SIZE(wm8731_intercon), | 594 | .num_dapm_routes = ARRAY_SIZE(wm8731_intercon), |
595 | .controls = wm8731_snd_controls, | ||
596 | .num_controls = ARRAY_SIZE(wm8731_snd_controls), | ||
598 | }; | 597 | }; |
599 | 598 | ||
600 | static const struct of_device_id wm8731_of_match[] = { | 599 | static const struct of_device_id wm8731_of_match[] = { |