Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161325
b: refs/heads/master
c: 4aebac2
h: refs/heads/master
i:
  161323: 931deee
v: v3
  • Loading branch information
Magnus Damm authored and Rafael J. Wysocki committed Jul 21, 2009
1 parent 53e986c commit 2b7ce70
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 4a256b5fc028e6dad0fd1b59745f743ee528c944
refs/heads/master: 4aebac2fb9645e897864e12cdb8d1e4aadf5b2a4
15 changes: 10 additions & 5 deletions trunk/drivers/dma/txx9dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1291,17 +1291,18 @@ static void txx9dmac_shutdown(struct platform_device *pdev)
txx9dmac_off(ddev);
}

static int txx9dmac_suspend_late(struct platform_device *pdev,
pm_message_t mesg)
static int txx9dmac_suspend_noirq(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct txx9dmac_dev *ddev = platform_get_drvdata(pdev);

txx9dmac_off(ddev);
return 0;
}

static int txx9dmac_resume_early(struct platform_device *pdev)
static int txx9dmac_resume_noirq(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct txx9dmac_dev *ddev = platform_get_drvdata(pdev);
struct txx9dmac_platform_data *pdata = pdev->dev.platform_data;
u32 mcr;
Expand All @@ -1314,6 +1315,11 @@ static int txx9dmac_resume_early(struct platform_device *pdev)

}

static struct dev_pm_ops txx9dmac_dev_pm_ops = {
.suspend_noirq = txx9dmac_suspend_noirq,
.resume_noirq = txx9dmac_resume_noirq,
};

static struct platform_driver txx9dmac_chan_driver = {
.remove = __exit_p(txx9dmac_chan_remove),
.driver = {
Expand All @@ -1324,10 +1330,9 @@ static struct platform_driver txx9dmac_chan_driver = {
static struct platform_driver txx9dmac_driver = {
.remove = __exit_p(txx9dmac_remove),
.shutdown = txx9dmac_shutdown,
.suspend_late = txx9dmac_suspend_late,
.resume_early = txx9dmac_resume_early,
.driver = {
.name = "txx9dmac",
.pm = &txx9dmac_dev_pm_ops,
},
};

Expand Down

0 comments on commit 2b7ce70

Please sign in to comment.