Merge branch 'for-5.0' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.1
This commit is contained in:
commit
ba54f278c3
|
@ -1609,7 +1609,6 @@ static int aic3x_probe(struct snd_soc_component *component)
|
|||
struct aic3x_priv *aic3x = snd_soc_component_get_drvdata(component);
|
||||
int ret, i;
|
||||
|
||||
INIT_LIST_HEAD(&aic3x->list);
|
||||
aic3x->component = component;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(aic3x->supplies); i++) {
|
||||
|
@ -1873,6 +1872,7 @@ static int aic3x_i2c_probe(struct i2c_client *i2c,
|
|||
if (ret != 0)
|
||||
goto err_gpio;
|
||||
|
||||
INIT_LIST_HEAD(&aic3x->list);
|
||||
list_add(&aic3x->list, &reset_list);
|
||||
|
||||
return 0;
|
||||
|
@ -1889,6 +1889,8 @@ static int aic3x_i2c_remove(struct i2c_client *client)
|
|||
{
|
||||
struct aic3x_priv *aic3x = i2c_get_clientdata(client);
|
||||
|
||||
list_del(&aic3x->list);
|
||||
|
||||
if (gpio_is_valid(aic3x->gpio_reset) &&
|
||||
!aic3x_is_shared_reset(aic3x)) {
|
||||
gpio_set_value(aic3x->gpio_reset, 0);
|
||||
|
|
Loading…
Reference in New Issue