aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/sudmac.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2013-08-02 16:50:36 +0200
committerVinod Koul <vinod.koul@intel.com>2013-08-27 14:25:09 +0530
commit4981c4dc194efb18f0e9a02f1b43e926f2f0d2bb (patch)
tree8c8543ecbd41100bc2d16ee957537ff2e7c20592 /drivers/dma/sh/sudmac.c
parentDMA: shdma: make a pointer const (diff)
downloadlinux-dev-4981c4dc194efb18f0e9a02f1b43e926f2f0d2bb.tar.xz
linux-dev-4981c4dc194efb18f0e9a02f1b43e926f2f0d2bb.zip
DMA: shdma: switch DT mode to use configuration data from a match table
This facilitates DMAC DT support by eliminating the need in AUXDATA and avoiding creating complex DT data. This also fits well with DMAC devices, of which SoCs often have multiple identical copies and it is perfectly valid to use a single configuration data set for all of them. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sh/sudmac.c')
-rw-r--r--drivers/dma/sh/sudmac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c
index 4808b45141b4..4600b429603e 100644
--- a/drivers/dma/sh/sudmac.c
+++ b/drivers/dma/sh/sudmac.c
@@ -150,7 +150,8 @@ static const struct sudmac_slave_config *sudmac_find_slave(
return NULL;
}
-static int sudmac_set_slave(struct shdma_chan *schan, int slave_id, bool try)
+static int sudmac_set_slave(struct shdma_chan *schan, int slave_id,
+ dma_addr_t slave_addr, bool try)
{
struct sudmac_chan *sc = to_chan(schan);
const struct sudmac_slave_config *cfg = sudmac_find_slave(sc, slave_id);