Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284065
b: refs/heads/master
c: 46c3a02
h: refs/heads/master
i:
  284063: 7204264
v: v3
  • Loading branch information
Julia Lawall authored and Mark Brown committed Jan 2, 2012
1 parent fa5db43 commit e9d4bb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 6d8955262ab4cbfcb3ddaca4f978d27d9c088a75
refs/heads/master: 46c3a02cc93083cb946872896428798cfb8609c0
12 changes: 2 additions & 10 deletions trunk/sound/soc/au1x/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,27 +325,19 @@ static struct snd_soc_platform_driver alchemy_pcm_soc_platform = {
static int __devinit alchemy_pcm_drvprobe(struct platform_device *pdev)
{
struct alchemy_pcm_ctx *ctx;
int ret;

ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
if (!ctx)
return -ENOMEM;

platform_set_drvdata(pdev, ctx);

ret = snd_soc_register_platform(&pdev->dev, &alchemy_pcm_soc_platform);
if (ret)
kfree(ctx);

return ret;
return snd_soc_register_platform(&pdev->dev, &alchemy_pcm_soc_platform);
}

static int __devexit alchemy_pcm_drvremove(struct platform_device *pdev)
{
struct alchemy_pcm_ctx *ctx = platform_get_drvdata(pdev);

snd_soc_unregister_platform(&pdev->dev);
kfree(ctx);

return 0;
}
Expand Down

0 comments on commit e9d4bb1

Please sign in to comment.