diff options
| -rw-r--r-- | sound/soc/codecs/tlv320aic3x.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index b1835103e9b4..d7349bc89ad3 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c | |||
| @@ -1399,7 +1399,6 @@ static int aic3x_probe(struct snd_soc_codec *codec) | |||
| 1399 | } | 1399 | } |
| 1400 | 1400 | ||
| 1401 | aic3x_add_widgets(codec); | 1401 | aic3x_add_widgets(codec); |
| 1402 | list_add(&aic3x->list, &reset_list); | ||
| 1403 | 1402 | ||
| 1404 | return 0; | 1403 | return 0; |
| 1405 | 1404 | ||
| @@ -1569,7 +1568,13 @@ static int aic3x_i2c_probe(struct i2c_client *i2c, | |||
| 1569 | 1568 | ||
| 1570 | ret = snd_soc_register_codec(&i2c->dev, | 1569 | ret = snd_soc_register_codec(&i2c->dev, |
| 1571 | &soc_codec_dev_aic3x, &aic3x_dai, 1); | 1570 | &soc_codec_dev_aic3x, &aic3x_dai, 1); |
| 1572 | return ret; | 1571 | |
| 1572 | if (ret != 0) | ||
| 1573 | goto err_gpio; | ||
| 1574 | |||
| 1575 | list_add(&aic3x->list, &reset_list); | ||
| 1576 | |||
| 1577 | return 0; | ||
| 1573 | 1578 | ||
| 1574 | err_gpio: | 1579 | err_gpio: |
| 1575 | if (gpio_is_valid(aic3x->gpio_reset) && | 1580 | if (gpio_is_valid(aic3x->gpio_reset) && |
