Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284023
b: refs/heads/master
c: 6ab7e71
h: refs/heads/master
i:
  284021: 5740d58
  284019: 3b604e9
  284015: 435b744
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 27, 2011
1 parent a590405 commit 0a19a89
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 6ce91ad4d8d7370be4f9ca3d7ded866cb1e2430d
refs/heads/master: 6ab7e71a9cbcd31f5ee09da384bcfcf0fa11b8c9
7 changes: 2 additions & 5 deletions trunk/sound/soc/codecs/88pm860x-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,8 @@ static int __devinit pm860x_codec_probe(struct platform_device *pdev)
struct resource *res;
int i, ret;

pm860x = kzalloc(sizeof(struct pm860x_priv), GFP_KERNEL);
pm860x = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_priv),
GFP_KERNEL);
if (pm860x == NULL)
return -ENOMEM;

Expand Down Expand Up @@ -1459,17 +1460,13 @@ static int __devinit pm860x_codec_probe(struct platform_device *pdev)

out:
platform_set_drvdata(pdev, NULL);
kfree(pm860x);
return -EINVAL;
}

static int __devexit pm860x_codec_remove(struct platform_device *pdev)
{
struct pm860x_priv *pm860x = platform_get_drvdata(pdev);

snd_soc_unregister_codec(&pdev->dev);
platform_set_drvdata(pdev, NULL);
kfree(pm860x);
return 0;
}

Expand Down

0 comments on commit 0a19a89

Please sign in to comment.