aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw/internal.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-09-23 10:18:13 -0400
committerVinod Koul <vinod.koul@intel.com>2014-10-15 11:01:04 -0400
commit2540f74b187e3ec0fe106b7427c4a84c955dc140 (patch)
treeea301843ba8ea9d3a56439854082f9b96c7b52da /drivers/dma/dw/internal.h
parent7a83c045435e896db6c689145d752d28b8b99b7b (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/internal.h')
-rw-r--r--drivers/dma/dw/internal.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/dma/dw/internal.h b/drivers/dma/dw/internal.h
index 9a886e3c31d3..c55c3e0bf1fe 100644
--- a/drivers/dma/dw/internal.h
+++ b/drivers/dma/dw/internal.h
@@ -38,14 +38,8 @@ struct dw_dma_chip {
38int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata); 38int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata);
39int dw_dma_remove(struct dw_dma_chip *chip); 39int dw_dma_remove(struct dw_dma_chip *chip);
40 40
41void dw_dma_shutdown(struct dw_dma_chip *chip); 41int dw_dma_disable(struct dw_dma_chip *chip);
42 42int dw_dma_enable(struct dw_dma_chip *chip);
43#ifdef CONFIG_PM_SLEEP
44
45int dw_dma_suspend(struct dw_dma_chip *chip);
46int dw_dma_resume(struct dw_dma_chip *chip);
47
48#endif /* CONFIG_PM_SLEEP */
49 43
50extern bool dw_dma_filter(struct dma_chan *chan, void *param); 44extern bool dw_dma_filter(struct dma_chan *chan, void *param);
51 45