Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348429
b: refs/heads/master
c: bfb6ed2
h: refs/heads/master
i:
  348427: 69b946a
v: v3
  • Loading branch information
Sachin Kamat authored and Inki Dae committed Jan 4, 2013
1 parent 2953950 commit 020e417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 1dcfe2382af35ebd685668d96b4fccd953e75ffc
refs/heads/master: bfb6ed26008b47c5b2b4df073a45627f31f12966
9 changes: 2 additions & 7 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ static int __devinit ipp_probe(struct platform_device *pdev)
struct exynos_drm_subdrv *subdrv;
int ret;

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

Expand All @@ -1911,8 +1911,7 @@ static int __devinit ipp_probe(struct platform_device *pdev)
ctx->event_workq = create_singlethread_workqueue("ipp_event");
if (!ctx->event_workq) {
dev_err(dev, "failed to create event workqueue\n");
ret = -EINVAL;
goto err_clear;
return -EINVAL;
}

/*
Expand Down Expand Up @@ -1953,8 +1952,6 @@ static int __devinit ipp_probe(struct platform_device *pdev)
destroy_workqueue(ctx->cmd_workq);
err_event_workq:
destroy_workqueue(ctx->event_workq);
err_clear:
kfree(ctx);
return ret;
}

Expand All @@ -1980,8 +1977,6 @@ static int __devexit ipp_remove(struct platform_device *pdev)
destroy_workqueue(ctx->cmd_workq);
destroy_workqueue(ctx->event_workq);

kfree(ctx);

return 0;
}

Expand Down

0 comments on commit 020e417

Please sign in to comment.