Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294047
b: refs/heads/master
c: 40679b3
h: refs/heads/master
i:
  294045: 1007871
  294043: e243b30
  294039: 263f793
  294031: 9308c42
  294015: 6c666e7
v: v3
  • Loading branch information
Viresh Kumar authored and Jeff Garzik committed Mar 13, 2012
1 parent f386f56 commit 3b8cde2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 9716387311c790de381214c03e7f1b72b91a8189
refs/heads/master: 40679b3ce9d993e33e026f402cbfffb35d2c4e3c
12 changes: 4 additions & 8 deletions trunk/drivers/ata/pata_arasan_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,11 +925,10 @@ static int arasan_cf_suspend(struct device *dev)
struct ata_host *host = dev_get_drvdata(dev);
struct arasan_cf_dev *acdev = host->ports[0]->private_data;

if (acdev->dma_chan) {
if (acdev->dma_chan)
acdev->dma_chan->device->device_control(acdev->dma_chan,
DMA_TERMINATE_ALL, 0);
dma_release_channel(acdev->dma_chan);
}

cf_exit(acdev);
return ata_host_suspend(host, PMSG_SUSPEND);
}
Expand All @@ -945,10 +944,7 @@ static int arasan_cf_resume(struct device *dev)
return 0;
}

static const struct dev_pm_ops arasan_cf_pm_ops = {
.suspend = arasan_cf_suspend,
.resume = arasan_cf_resume,
};
static SIMPLE_DEV_PM_OPS(arasan_cf_pm_ops, arasan_cf_suspend, arasan_cf_resume);
#endif

static struct platform_driver arasan_cf_driver = {
Expand All @@ -958,7 +954,7 @@ static struct platform_driver arasan_cf_driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &arasan_cf_pm_ops,
.pm = &arasan_cf_pm_ops,
#endif
},
};
Expand Down

0 comments on commit 3b8cde2

Please sign in to comment.