summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8960.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2012-09-20 20:57:27 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-21 14:35:06 +0200
commit0534951ba493a97eee646f62101cf88fac2308c6 (patch)
tree13a941ac3ae1d20f3cde2d56d3d2ab811ac3c372 /sound/soc/codecs/wm8960.c
parentASoC: wm8961: Move device identification and reset to I2C probe (diff)
downloadlinux-0534951ba493a97eee646f62101cf88fac2308c6.tar.xz
linux-0534951ba493a97eee646f62101cf88fac2308c6.zip
ASoC: wm8960: remove 'dres' field from platform data structure
The 'dres' field (discharge resistance for headphone outputs) is no longer used in the driver, so remove it. It was used in the original version of the driver when entering standby from off, but we stopped using it when we switched from having a single startup sequence to having separate cap and capless sequences. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/wm8960.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 782faa0a3b49..f0f6f6601785 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -962,11 +962,6 @@ static int wm8960_probe(struct snd_soc_codec *codec)
if (!pdata) {
dev_warn(codec->dev, "No platform data supplied\n");
} else {
- if (pdata->dres > WM8960_DRES_MAX) {
- dev_err(codec->dev, "Invalid DRES: %d\n", pdata->dres);
- pdata->dres = 0;
- }
-
if (pdata->capless)
wm8960->set_bias_level = wm8960_set_bias_level_capless;
}