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/internal.h | |
parent | 7a83c045435e896db6c689145d752d28b8b99b7b (diff) | |
download | linux-2540f74b187e3ec0fe106b7427c4a84c955dc140.tar.gz |
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 { int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata); int dw_dma_remove(struct dw_dma_chip *chip); -void dw_dma_shutdown(struct dw_dma_chip *chip); - -#ifdef CONFIG_PM_SLEEP - -int dw_dma_suspend(struct dw_dma_chip *chip); -int dw_dma_resume(struct dw_dma_chip *chip); - -#endif /* CONFIG_PM_SLEEP */ +int dw_dma_disable(struct dw_dma_chip *chip); +int dw_dma_enable(struct dw_dma_chip *chip); extern bool dw_dma_filter(struct dma_chan *chan, void *param); |