ASoC: When releasing WM5100 put /RESET into reset
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 17 Jan 2012 19:18:27 +0000 (19:18 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:58:30 +0000 (13:58 +0000)
Reset is active low, make sure we leave it asserted when release the
device.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm5100.c

index 66f0611e68b6e8efdae0234eee5ed6fd8748d3b4..c112f5eaa119ad2cdfc99418f482442d919e0496 100644 (file)
@@ -2764,7 +2764,7 @@ static __devinit int wm5100_i2c_probe(struct i2c_client *i2c,
 err_reset:
        wm5100_free_gpio(i2c);
        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);
        }
 err_ldo:
@@ -2797,7 +2797,7 @@ static __devexit int wm5100_i2c_remove(struct i2c_client *client)
        snd_soc_unregister_codec(&client->dev);
        wm5100_free_gpio(client);
        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);
        }
        if (wm5100->pdata.ldo_ena) {