Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283793
b: refs/heads/master
c: a290986
h: refs/heads/master
i:
  283791: ab5ab80
v: v3
  • Loading branch information
Mark Brown committed Nov 27, 2011
1 parent 4af2435 commit 243ece3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 897f7847e6fec6f24efef4268993afcfc36dca23
refs/heads/master: a290986b2a184941da60921ada71bcb47a0d4af2
5 changes: 2 additions & 3 deletions trunk/sound/soc/codecs/wm8996.c
Original file line number Diff line number Diff line change
Expand Up @@ -3104,7 +3104,8 @@ static __devinit int wm8996_i2c_probe(struct i2c_client *i2c,
int ret, i;
unsigned int reg;

wm8996 = kzalloc(sizeof(struct wm8996_priv), GFP_KERNEL);
wm8996 = devm_kzalloc(&i2c->dev, sizeof(struct wm8996_priv),
GFP_KERNEL);
if (wm8996 == NULL)
return -ENOMEM;

Expand Down Expand Up @@ -3216,7 +3217,6 @@ static __devinit int wm8996_i2c_probe(struct i2c_client *i2c,
if (wm8996->pdata.ldo_ena > 0)
gpio_free(wm8996->pdata.ldo_ena);
err:
kfree(wm8996);

return ret;
}
Expand All @@ -3234,7 +3234,6 @@ static __devexit int wm8996_i2c_remove(struct i2c_client *client)
gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0);
gpio_free(wm8996->pdata.ldo_ena);
}
kfree(wm8996);
return 0;
}

Expand Down

0 comments on commit 243ece3

Please sign in to comment.