Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161355
b: refs/heads/master
c: 33f82d1
h: refs/heads/master
i:
  161353: 05fa17d
  161351: 88d4f2c
v: v3
  • Loading branch information
Dan Williams authored and Rafael J. Wysocki committed Sep 14, 2009
1 parent 8707bac commit d0bb2c1
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 3eb132c986f04f64b9c360abd67a1e0d18d6d5b4
refs/heads/master: 33f82d141c897f39cd8bce592d88cb3c5af58342
19 changes: 12 additions & 7 deletions trunk/drivers/dma/at_hdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1166,32 +1166,37 @@ static void at_dma_shutdown(struct platform_device *pdev)
clk_disable(atdma->clk);
}

static int at_dma_suspend_late(struct platform_device *pdev, pm_message_t mesg)
static int at_dma_suspend_noirq(struct device *dev)
{
struct at_dma *atdma = platform_get_drvdata(pdev);
struct platform_device *pdev = to_platform_device(dev);
struct at_dma *atdma = platform_get_drvdata(pdev);

at_dma_off(platform_get_drvdata(pdev));
clk_disable(atdma->clk);
return 0;
}

static int at_dma_resume_early(struct platform_device *pdev)
static int at_dma_resume_noirq(struct device *dev)
{
struct at_dma *atdma = platform_get_drvdata(pdev);
struct platform_device *pdev = to_platform_device(dev);
struct at_dma *atdma = platform_get_drvdata(pdev);

clk_enable(atdma->clk);
dma_writel(atdma, EN, AT_DMA_ENABLE);
return 0;

}

static struct dev_pm_ops at_dma_dev_pm_ops = {
.suspend_noirq = at_dma_suspend_noirq,
.resume_noirq = at_dma_resume_noirq,
};

static struct platform_driver at_dma_driver = {
.remove = __exit_p(at_dma_remove),
.shutdown = at_dma_shutdown,
.suspend_late = at_dma_suspend_late,
.resume_early = at_dma_resume_early,
.driver = {
.name = "at_hdmac",
.pm = &at_dma_dev_pm_ops,
},
};

Expand Down

0 comments on commit d0bb2c1

Please sign in to comment.