Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332085
b: refs/heads/master
c: 3217b0f
h: refs/heads/master
i:
  332083: acdde18
v: v3
  • Loading branch information
Mark Brown committed Sep 12, 2012
1 parent ed816a9 commit 6fdd5e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 7e94ca4752991c3830515f6e17ee5a7334a7f590
refs/heads/master: 3217b0f5b6fd91440fd72cf24a8986b3f99d0d84
12 changes: 6 additions & 6 deletions trunk/sound/soc/codecs/wm8510.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ static int __devinit wm8510_spi_probe(struct spi_device *spi)
struct wm8510_priv *wm8510;
int ret;

wm8510 = kzalloc(sizeof(struct wm8510_priv), GFP_KERNEL);
wm8510 = devm_kzalloc(&spi->dev, sizeof(struct wm8510_priv),
GFP_KERNEL);
if (wm8510 == NULL)
return -ENOMEM;

Expand All @@ -601,8 +602,7 @@ static int __devinit wm8510_spi_probe(struct spi_device *spi)

ret = snd_soc_register_codec(&spi->dev,
&soc_codec_dev_wm8510, &wm8510_dai, 1);
if (ret < 0)
kfree(wm8510);

return ret;
}

Expand Down Expand Up @@ -630,7 +630,8 @@ static __devinit int wm8510_i2c_probe(struct i2c_client *i2c,
struct wm8510_priv *wm8510;
int ret;

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

Expand All @@ -639,8 +640,7 @@ static __devinit int wm8510_i2c_probe(struct i2c_client *i2c,

ret = snd_soc_register_codec(&i2c->dev,
&soc_codec_dev_wm8510, &wm8510_dai, 1);
if (ret < 0)
kfree(wm8510);

return ret;
}

Expand Down

0 comments on commit 6fdd5e5

Please sign in to comment.