Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293417
b: refs/heads/master
c: 2c823d1
h: refs/heads/master
i:
  293415: 77b7185
v: v3
  • Loading branch information
Mark Brown committed Feb 27, 2012
1 parent 6787358 commit 77d86d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 07a38b1b4ee505a70c31eb015f1f031dcdb854ab
refs/heads/master: 2c823d14bfad16e75d16674a312a779a1485a2bd
10 changes: 5 additions & 5 deletions trunk/sound/soc/codecs/wm8753.c
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,8 @@ static int __devinit wm8753_spi_probe(struct spi_device *spi)
struct wm8753_priv *wm8753;
int ret;

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

Expand All @@ -1580,7 +1581,6 @@ static int __devinit wm8753_spi_probe(struct spi_device *spi)
err_regmap:
regmap_exit(wm8753->regmap);
err:
kfree(wm8753);
return ret;
}

Expand Down Expand Up @@ -1612,7 +1612,8 @@ static __devinit int wm8753_i2c_probe(struct i2c_client *i2c,
struct wm8753_priv *wm8753;
int ret;

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

Expand All @@ -1632,10 +1633,10 @@ static __devinit int wm8753_i2c_probe(struct i2c_client *i2c,
dev_err(&i2c->dev, "Failed to register CODEC: %d\n", ret);
goto err_regmap;
}

err_regmap:
regmap_exit(wm8753->regmap);
err:
kfree(wm8753);
return ret;
}

Expand All @@ -1645,7 +1646,6 @@ static __devexit int wm8753_i2c_remove(struct i2c_client *client)

snd_soc_unregister_codec(&client->dev);
regmap_exit(wm8753->regmap);
kfree(wm8753);
return 0;
}

Expand Down

0 comments on commit 77d86d5

Please sign in to comment.