Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286130
b: refs/heads/master
c: 3506c0d
h: refs/heads/master
v: v3
  • Loading branch information
Tushar Behera authored and Vinod Koul committed Dec 8, 2011
1 parent c90abb9 commit 8bf92e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 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: f910fb8fcd1c97788f2291c8646597bcd87ee061
refs/heads/master: 3506c0d507144d9b0f19efd5a56d289f70611179
17 changes: 2 additions & 15 deletions trunk/drivers/dma/pl330.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,17 +820,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)

amba_set_drvdata(adev, pdmac);

#ifdef CONFIG_PM_RUNTIME
/* to use the runtime PM helper functions */
pm_runtime_enable(&adev->dev);

/* enable the power domain */
if (pm_runtime_get_sync(&adev->dev)) {
dev_err(&adev->dev, "failed to get runtime pm\n");
ret = -ENODEV;
goto probe_err1;
}
#else
#ifndef CONFIG_PM_RUNTIME
/* enable dma clk */
clk_enable(pdmac->clk);
#endif
Expand Down Expand Up @@ -971,10 +961,7 @@ static int __devexit pl330_remove(struct amba_device *adev)
res = &adev->res;
release_mem_region(res->start, resource_size(res));

#ifdef CONFIG_PM_RUNTIME
pm_runtime_put(&adev->dev);
pm_runtime_disable(&adev->dev);
#else
#ifndef CONFIG_PM_RUNTIME
clk_disable(pdmac->clk);
#endif

Expand Down

0 comments on commit 8bf92e8

Please sign in to comment.