dmaengine: ste_dma40: Remove redundant address fetching function
authorLee Jones <lee.jones@linaro.org>
Wed, 15 May 2013 09:51:31 +0000 (10:51 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2013 19:13:34 +0000 (21:13 +0200)
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>
drivers/dma/ste_dma40.c

index 57a127e5c89646be9b714c4f611867f43adca4ac..6ed775736853b17ac259842722f7e80ab7556910 100644 (file)
@@ -2267,24 +2267,6 @@ err:
        return NULL;
 }
 
-static dma_addr_t
-d40_get_dev_addr(struct d40_chan *chan, enum dma_transfer_direction direction)
-{
-       struct stedma40_platform_data *plat = chan->base->plat_data;
-       struct stedma40_chan_cfg *cfg = &chan->dma_cfg;
-       dma_addr_t addr = 0;
-
-       if (chan->runtime_addr)
-               return chan->runtime_addr;
-
-       if (direction == DMA_DEV_TO_MEM)
-               addr = plat->dev_rx[cfg->dev_type];
-       else if (direction == DMA_MEM_TO_DEV)
-               addr = plat->dev_tx[cfg->dev_type];
-
-       return addr;
-}
-
 static struct dma_async_tx_descriptor *
 d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src,
            struct scatterlist *sg_dst, unsigned int sg_len,
This page took 0.026008 seconds and 5 git commands to generate.