aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen@linux.intel.com>2011-12-16 04:01:40 -0500
committerVinod Koul <vinod.koul@linux.intel.com>2012-01-02 06:04:42 -0500
commit8730790b971d747dd4508d22fbc1a4f9422c2803 (patch)
tree1298c05c62b6cbf35f0e2bde569bfdc7277bc21a /drivers/dma
parentd6077c92b6c51299eac7c2673631d6394ee2191a (diff)
dmaengine: intel_mid_dma: remove legacy pm interface
Drivers should not support both legacy pm and new framework. Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/intel_mid_dma.c12
-rw-r--r--drivers/dma/intel_mid_dma_regs.h2
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
index bbcd470c3236..74f70aadf9e4 100644
--- a/drivers/dma/intel_mid_dma.c
+++ b/drivers/dma/intel_mid_dma.c
@@ -873,7 +873,7 @@ static int intel_mid_dma_alloc_chan_resources(struct dma_chan *chan)
873 pm_runtime_get_sync(&mid->pdev->dev); 873 pm_runtime_get_sync(&mid->pdev->dev);
874 874
875 if (mid->state == SUSPENDED) { 875 if (mid->state == SUSPENDED) {
876 if (dma_resume(mid->pdev)) { 876 if (dma_resume(&mid->pdev->dev)) {
877 pr_err("ERR_MDMA: resume failed"); 877 pr_err("ERR_MDMA: resume failed");
878 return -EFAULT; 878 return -EFAULT;
879 } 879 }
@@ -1346,8 +1346,9 @@ static void __devexit intel_mid_dma_remove(struct pci_dev *pdev)
1346* 1346*
1347* This function is called by OS when a power event occurs 1347* This function is called by OS when a power event occurs
1348*/ 1348*/
1349int dma_suspend(struct pci_dev *pci, pm_message_t state) 1349static int dma_suspend(struct device *dev)
1350{ 1350{
1351 struct pci_dev *pci = to_pci_dev(dev);
1351 int i; 1352 int i;
1352 struct middma_device *device = pci_get_drvdata(pci); 1353 struct middma_device *device = pci_get_drvdata(pci);
1353 pr_debug("MDMA: dma_suspend called\n"); 1354 pr_debug("MDMA: dma_suspend called\n");
@@ -1371,8 +1372,9 @@ int dma_suspend(struct pci_dev *pci, pm_message_t state)
1371* 1372*
1372* This function is called by OS when a power event occurs 1373* This function is called by OS when a power event occurs
1373*/ 1374*/
1374int dma_resume(struct pci_dev *pci) 1375int dma_resume(struct device *dev)
1375{ 1376{
1377 struct pci_dev *pci = to_pci_dev(dev);
1376 int ret; 1378 int ret;
1377 struct middma_device *device = pci_get_drvdata(pci); 1379 struct middma_device *device = pci_get_drvdata(pci);
1378 1380
@@ -1438,6 +1440,8 @@ static const struct dev_pm_ops intel_mid_dma_pm = {
1438 .runtime_suspend = dma_runtime_suspend, 1440 .runtime_suspend = dma_runtime_suspend,
1439 .runtime_resume = dma_runtime_resume, 1441 .runtime_resume = dma_runtime_resume,
1440 .runtime_idle = dma_runtime_idle, 1442 .runtime_idle = dma_runtime_idle,
1443 .suspend = dma_suspend,
1444 .resume = dma_resume,
1441}; 1445};
1442 1446
1443static struct pci_driver intel_mid_dma_pci_driver = { 1447static struct pci_driver intel_mid_dma_pci_driver = {
@@ -1446,8 +1450,6 @@ static struct pci_driver intel_mid_dma_pci_driver = {
1446 .probe = intel_mid_dma_probe, 1450 .probe = intel_mid_dma_probe,
1447 .remove = __devexit_p(intel_mid_dma_remove), 1451 .remove = __devexit_p(intel_mid_dma_remove),
1448#ifdef CONFIG_PM 1452#ifdef CONFIG_PM
1449 .suspend = dma_suspend,
1450 .resume = dma_resume,
1451 .driver = { 1453 .driver = {
1452 .pm = &intel_mid_dma_pm, 1454 .pm = &intel_mid_dma_pm,
1453 }, 1455 },
diff --git a/drivers/dma/intel_mid_dma_regs.h b/drivers/dma/intel_mid_dma_regs.h
index c6de919a6401..c83d35b97bd8 100644
--- a/drivers/dma/intel_mid_dma_regs.h
+++ b/drivers/dma/intel_mid_dma_regs.h
@@ -296,6 +296,6 @@ static inline struct intel_mid_dma_slave *to_intel_mid_dma_slave
296} 296}
297 297
298 298
299int dma_resume(struct pci_dev *pci); 299int dma_resume(struct device *dev);
300 300
301#endif /*__INTEL_MID_DMAC_REGS_H__*/ 301#endif /*__INTEL_MID_DMAC_REGS_H__*/