diff options
author | Chao Jiang <chaoj@nvidia.com> | 2011-02-25 18:54:05 +0900 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-03-04 18:25:44 -0800 |
commit | 0355ab1e7e6b3c8bf4ce9414cf0afa00cb4e113f (patch) | |
tree | d3d5ca7447393d0908651c44691bd92309790952 /sound/soc | |
parent | b68ba5254adf9818bf792764f91decf139ecf4d7 (diff) |
ASoC: WM8903: Ignore no-touched pin explicitly
Ignore no-touched pins. This will help to set up gpio pins safely.
Change-Id: Iff9f3249b9e3594ede5c75cce59f38c2ad432f92
Reviewed-on: http://git-master/r/20895
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8903.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index eee90e43c231..7dd0e83a8977 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -1975,7 +1975,7 @@ static __devinit int wm8903_i2c_probe(struct i2c_client *i2c, /* Set up GPIOs and microphone detection */ if (pdata) { for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { - if (!pdata->gpio_cfg[i]) + if (pdata->gpio_cfg[i] == WM8903_GPIO_NO_CONFIG) continue; snd_soc_write(codec, WM8903_GPIO_CONTROL_1 + i, |