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/core.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/core.c')
-rw-r--r-- | drivers/dma/dw/core.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index e94de0045aaf..48126380e036 100644 --- a/drivers/dma/dw/core.c +++ b/drivers/dma/dw/core.c | |||
@@ -1687,35 +1687,23 @@ int dw_dma_remove(struct dw_dma_chip *chip) | |||
1687 | } | 1687 | } |
1688 | EXPORT_SYMBOL_GPL(dw_dma_remove); | 1688 | EXPORT_SYMBOL_GPL(dw_dma_remove); |
1689 | 1689 | ||
1690 | void dw_dma_shutdown(struct dw_dma_chip *chip) | 1690 | int dw_dma_disable(struct dw_dma_chip *chip) |
1691 | { | ||
1692 | struct dw_dma *dw = chip->dw; | ||
1693 | |||
1694 | dw_dma_off(dw); | ||
1695 | } | ||
1696 | EXPORT_SYMBOL_GPL(dw_dma_shutdown); | ||
1697 | |||
1698 | #ifdef CONFIG_PM_SLEEP | ||
1699 | |||
1700 | int dw_dma_suspend(struct dw_dma_chip *chip) | ||
1701 | { | 1691 | { |
1702 | struct dw_dma *dw = chip->dw; | 1692 | struct dw_dma *dw = chip->dw; |
1703 | 1693 | ||
1704 | dw_dma_off(dw); | 1694 | dw_dma_off(dw); |
1705 | return 0; | 1695 | return 0; |
1706 | } | 1696 | } |
1707 | EXPORT_SYMBOL_GPL(dw_dma_suspend); | 1697 | EXPORT_SYMBOL_GPL(dw_dma_disable); |
1708 | 1698 | ||
1709 | int dw_dma_resume(struct dw_dma_chip *chip) | 1699 | int dw_dma_enable(struct dw_dma_chip *chip) |
1710 | { | 1700 | { |
1711 | struct dw_dma *dw = chip->dw; | 1701 | struct dw_dma *dw = chip->dw; |
1712 | 1702 | ||
1713 | dw_dma_on(dw); | 1703 | dw_dma_on(dw); |
1714 | return 0; | 1704 | return 0; |
1715 | } | 1705 | } |
1716 | EXPORT_SYMBOL_GPL(dw_dma_resume); | 1706 | EXPORT_SYMBOL_GPL(dw_dma_enable); |
1717 | |||
1718 | #endif /* CONFIG_PM_SLEEP */ | ||
1719 | 1707 | ||
1720 | MODULE_LICENSE("GPL v2"); | 1708 | MODULE_LICENSE("GPL v2"); |
1721 | MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller core driver"); | 1709 | MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller core driver"); |