diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-17 14:18:27 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-20 08:58:30 -0500 |
commit | 2688738ebac66b4e276321248eb3e12d59cbcd7f (patch) | |
tree | 3986b9f0908721532392d6b71bf80a47ddb7a471 /sound/soc/codecs/wm5100.c | |
parent | 99b0292d94975429eacc0c1ce4c985f7207394ba (diff) |
ASoC: When releasing WM5100 put /RESET into reset
Reset is active low, make sure we leave it asserted when release the
device.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm5100.c')
-rw-r--r-- | sound/soc/codecs/wm5100.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index 66f0611e68b6..c112f5eaa119 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c | |||
@@ -2764,7 +2764,7 @@ static __devinit int wm5100_i2c_probe(struct i2c_client *i2c, | |||
2764 | err_reset: | 2764 | err_reset: |
2765 | wm5100_free_gpio(i2c); | 2765 | wm5100_free_gpio(i2c); |
2766 | if (wm5100->pdata.reset) { | 2766 | if (wm5100->pdata.reset) { |
2767 | gpio_set_value_cansleep(wm5100->pdata.reset, 1); | 2767 | gpio_set_value_cansleep(wm5100->pdata.reset, 0); |
2768 | gpio_free(wm5100->pdata.reset); | 2768 | gpio_free(wm5100->pdata.reset); |
2769 | } | 2769 | } |
2770 | err_ldo: | 2770 | err_ldo: |
@@ -2797,7 +2797,7 @@ static __devexit int wm5100_i2c_remove(struct i2c_client *client) | |||
2797 | snd_soc_unregister_codec(&client->dev); | 2797 | snd_soc_unregister_codec(&client->dev); |
2798 | wm5100_free_gpio(client); | 2798 | wm5100_free_gpio(client); |
2799 | if (wm5100->pdata.reset) { | 2799 | if (wm5100->pdata.reset) { |
2800 | gpio_set_value_cansleep(wm5100->pdata.reset, 1); | 2800 | gpio_set_value_cansleep(wm5100->pdata.reset, 0); |
2801 | gpio_free(wm5100->pdata.reset); | 2801 | gpio_free(wm5100->pdata.reset); |
2802 | } | 2802 | } |
2803 | if (wm5100->pdata.ldo_ena) { | 2803 | if (wm5100->pdata.ldo_ena) { |