diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-09-23 17:18:13 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-10-15 20:31:04 +0530 |
commit | 2540f74b187e3ec0fe106b7427c4a84c955dc140 (patch) | |
tree | ea301843ba8ea9d3a56439854082f9b96c7b52da /drivers/dma/dw/pci.c | |
parent | 7a83c045435e896db6c689145d752d28b8b99b7b (diff) |
dmaengine: dw: always export dw_dma_{en,dis}able
Instead of conditional exporing of dw_dma_suspend() / dw_dma_resume() let's
export dw_dma_disable() / dw_dma_enable(). Since dw_dma_shutdown() repeats
dw_dma_disable() we may safely remove it at all.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw/pci.c')
-rw-r--r-- | drivers/dma/dw/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/dw/pci.c b/drivers/dma/dw/pci.c index 9c8882842689..b144706b3d85 100644 --- a/drivers/dma/dw/pci.c +++ b/drivers/dma/dw/pci.c @@ -82,7 +82,7 @@ static int dw_pci_suspend_late(struct device *dev) struct pci_dev *pci = to_pci_dev(dev); struct dw_dma_chip *chip = pci_get_drvdata(pci); - return dw_dma_suspend(chip); + return dw_dma_disable(chip); }; static int dw_pci_resume_early(struct device *dev) @@ -90,7 +90,7 @@ static int dw_pci_resume_early(struct device *dev) struct pci_dev *pci = to_pci_dev(dev); struct dw_dma_chip *chip = pci_get_drvdata(pci); - return dw_dma_resume(chip); + return dw_dma_enable(chip); }; #endif /* CONFIG_PM_SLEEP */ |