diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-05-15 05:51:31 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-05-23 15:13:34 -0400 |
commit | 01c935c4ecbf6e67d8b7b8258c5eb3be84c248aa (patch) | |
tree | ef9562a1d444df3b5a6d1eab13dbb0eadcb415fc /drivers/dma | |
parent | ef9c89b3ec6916dd0b7db1563d51d85af3e7f031 (diff) |
dmaengine: ste_dma40: Remove redundant address fetching function
Addresses are now stored in local data structures and are easy to
obtain, thus a specialist function used to fetch them is now surplus
to requirement.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ste_dma40.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 57a127e5c896..6ed775736853 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c | |||
@@ -2267,24 +2267,6 @@ err: | |||
2267 | return NULL; | 2267 | return NULL; |
2268 | } | 2268 | } |
2269 | 2269 | ||
2270 | static dma_addr_t | ||
2271 | d40_get_dev_addr(struct d40_chan *chan, enum dma_transfer_direction direction) | ||
2272 | { | ||
2273 | struct stedma40_platform_data *plat = chan->base->plat_data; | ||
2274 | struct stedma40_chan_cfg *cfg = &chan->dma_cfg; | ||
2275 | dma_addr_t addr = 0; | ||
2276 | |||
2277 | if (chan->runtime_addr) | ||
2278 | return chan->runtime_addr; | ||
2279 | |||
2280 | if (direction == DMA_DEV_TO_MEM) | ||
2281 | addr = plat->dev_rx[cfg->dev_type]; | ||
2282 | else if (direction == DMA_MEM_TO_DEV) | ||
2283 | addr = plat->dev_tx[cfg->dev_type]; | ||
2284 | |||
2285 | return addr; | ||
2286 | } | ||
2287 | |||
2288 | static struct dma_async_tx_descriptor * | 2270 | static struct dma_async_tx_descriptor * |
2289 | d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src, | 2271 | d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src, |
2290 | struct scatterlist *sg_dst, unsigned int sg_len, | 2272 | struct scatterlist *sg_dst, unsigned int sg_len, |