diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-09-23 10:18:13 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-10-15 11:01:04 -0400 |
commit | 2540f74b187e3ec0fe106b7427c4a84c955dc140 (patch) | |
tree | ea301843ba8ea9d3a56439854082f9b96c7b52da /drivers/dma/dw/internal.h | |
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/internal.h')
-rw-r--r-- | drivers/dma/dw/internal.h | 10 |
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 { | |||
38 | int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata); | 38 | int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata); |
39 | int dw_dma_remove(struct dw_dma_chip *chip); | 39 | int dw_dma_remove(struct dw_dma_chip *chip); |
40 | 40 | ||
41 | void dw_dma_shutdown(struct dw_dma_chip *chip); | 41 | int dw_dma_disable(struct dw_dma_chip *chip); |
42 | 42 | int dw_dma_enable(struct dw_dma_chip *chip); | |
43 | #ifdef CONFIG_PM_SLEEP | ||
44 | |||
45 | int dw_dma_suspend(struct dw_dma_chip *chip); | ||
46 | int dw_dma_resume(struct dw_dma_chip *chip); | ||
47 | |||
48 | #endif /* CONFIG_PM_SLEEP */ | ||
49 | 43 | ||
50 | extern bool dw_dma_filter(struct dma_chan *chan, void *param); | 44 | extern bool dw_dma_filter(struct dma_chan *chan, void *param); |
51 | 45 | ||