diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-08-02 10:50:36 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-27 04:55:09 -0400 |
commit | 4981c4dc194efb18f0e9a02f1b43e926f2f0d2bb (patch) | |
tree | 8c8543ecbd41100bc2d16ee957537ff2e7c20592 /drivers/dma/sh/sudmac.c | |
parent | 2833c47e0ecc74b300716e56810143125ad7a3f1 (diff) |
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.c | 3 |
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( | |||
150 | return NULL; | 150 | return NULL; |
151 | } | 151 | } |
152 | 152 | ||
153 | static int sudmac_set_slave(struct shdma_chan *schan, int slave_id, bool try) | 153 | static int sudmac_set_slave(struct shdma_chan *schan, int slave_id, |
154 | dma_addr_t slave_addr, bool try) | ||
154 | { | 155 | { |
155 | struct sudmac_chan *sc = to_chan(schan); | 156 | struct sudmac_chan *sc = to_chan(schan); |
156 | const struct sudmac_slave_config *cfg = sudmac_find_slave(sc, slave_id); | 157 | const struct sudmac_slave_config *cfg = sudmac_find_slave(sc, slave_id); |