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>
This commit is contained in:
parent
99b0292d94
commit
2688738eba
1 changed files with 2 additions and 2 deletions
|
@ -2764,7 +2764,7 @@ static __devinit int wm5100_i2c_probe(struct i2c_client *i2c,
|
||||||
err_reset:
|
err_reset:
|
||||||
wm5100_free_gpio(i2c);
|
wm5100_free_gpio(i2c);
|
||||||
if (wm5100->pdata.reset) {
|
if (wm5100->pdata.reset) {
|
||||||
gpio_set_value_cansleep(wm5100->pdata.reset, 1);
|
gpio_set_value_cansleep(wm5100->pdata.reset, 0);
|
||||||
gpio_free(wm5100->pdata.reset);
|
gpio_free(wm5100->pdata.reset);
|
||||||
}
|
}
|
||||||
err_ldo:
|
err_ldo:
|
||||||
|
@ -2797,7 +2797,7 @@ static __devexit int wm5100_i2c_remove(struct i2c_client *client)
|
||||||
snd_soc_unregister_codec(&client->dev);
|
snd_soc_unregister_codec(&client->dev);
|
||||||
wm5100_free_gpio(client);
|
wm5100_free_gpio(client);
|
||||||
if (wm5100->pdata.reset) {
|
if (wm5100->pdata.reset) {
|
||||||
gpio_set_value_cansleep(wm5100->pdata.reset, 1);
|
gpio_set_value_cansleep(wm5100->pdata.reset, 0);
|
||||||
gpio_free(wm5100->pdata.reset);
|
gpio_free(wm5100->pdata.reset);
|
||||||
}
|
}
|
||||||
if (wm5100->pdata.ldo_ena) {
|
if (wm5100->pdata.ldo_ena) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue