diff options
author | Vinod Koul <vkoul@kernel.org> | 2018-07-19 12:52:26 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-10-07 09:50:32 -0400 |
commit | 3d143c252ef014f38e6eacb548d5b9464c093e4c (patch) | |
tree | 6eb837135a72d5b6fcc7da3dc6f44c8a684d19f4 | |
parent | 09347e3f26a56bd5abe931251547aac8d80f0e7e (diff) |
dmaengine: dw: remove dma_slave_config direction usage
dma_slave_config direction was marked as deprecated quite some
time back, remove the usage from this driver so that the field
can be removed
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/dma/dw/core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index f43e6dafe446..d0c3e50b39fb 100644 --- a/drivers/dma/dw/core.c +++ b/drivers/dma/dw/core.c | |||
@@ -886,12 +886,7 @@ static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig) | |||
886 | */ | 886 | */ |
887 | u32 s = dw->pdata->is_idma32 ? 1 : 2; | 887 | u32 s = dw->pdata->is_idma32 ? 1 : 2; |
888 | 888 | ||
889 | /* Check if chan will be configured for slave transfers */ | ||
890 | if (!is_slave_direction(sconfig->direction)) | ||
891 | return -EINVAL; | ||
892 | |||
893 | memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig)); | 889 | memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig)); |
894 | dwc->direction = sconfig->direction; | ||
895 | 890 | ||
896 | sc->src_maxburst = sc->src_maxburst > 1 ? fls(sc->src_maxburst) - s : 0; | 891 | sc->src_maxburst = sc->src_maxburst > 1 ? fls(sc->src_maxburst) - s : 0; |
897 | sc->dst_maxburst = sc->dst_maxburst > 1 ? fls(sc->dst_maxburst) - s : 0; | 892 | sc->dst_maxburst = sc->dst_maxburst > 1 ? fls(sc->dst_maxburst) - s : 0; |