diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-02-16 20:47:11 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-02-23 05:42:25 -0500 |
commit | b76924a0193fe1f221e3f52a410247e4a1da5c5a (patch) | |
tree | b5db7240712e8c40a5302222ca0a1e6e33fd85ad | |
parent | 5f48dd0690cbcea3f35b9ef2f05d5468dedc80b0 (diff) |
mmc: tmio_mmc: remove slave_id settings for DMAEngine
Current tmio_mmc sets dma_slave_config :: slave_id field for DMAEngine,
but it is no longer needed. Let's remove it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/mmc/host/sh_mobile_sdhi.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc.h | 2 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc_dma.c | 4 |
3 files changed, 0 insertions, 8 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 6906a905cd54..11991f5f3fef 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -261,8 +261,6 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) | |||
261 | */ | 261 | */ |
262 | dma_priv->chan_priv_tx = (void *)p->dma_slave_tx; | 262 | dma_priv->chan_priv_tx = (void *)p->dma_slave_tx; |
263 | dma_priv->chan_priv_rx = (void *)p->dma_slave_rx; | 263 | dma_priv->chan_priv_rx = (void *)p->dma_slave_rx; |
264 | dma_priv->slave_id_tx = p->dma_slave_tx; | ||
265 | dma_priv->slave_id_rx = p->dma_slave_rx; | ||
266 | } | 264 | } |
267 | } | 265 | } |
268 | dma_priv->filter = shdma_chan_filter; | 266 | dma_priv->filter = shdma_chan_filter; |
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index fc3805ed69d1..1aea5c67af94 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h | |||
@@ -45,8 +45,6 @@ struct tmio_mmc_host; | |||
45 | struct tmio_mmc_dma { | 45 | struct tmio_mmc_dma { |
46 | void *chan_priv_tx; | 46 | void *chan_priv_tx; |
47 | void *chan_priv_rx; | 47 | void *chan_priv_rx; |
48 | int slave_id_tx; | ||
49 | int slave_id_rx; | ||
50 | enum dma_slave_buswidth dma_buswidth; | 48 | enum dma_slave_buswidth dma_buswidth; |
51 | bool (*filter)(struct dma_chan *chan, void *arg); | 49 | bool (*filter)(struct dma_chan *chan, void *arg); |
52 | void (*enable)(struct tmio_mmc_host *host, bool enable); | 50 | void (*enable)(struct tmio_mmc_host *host, bool enable); |
diff --git a/drivers/mmc/host/tmio_mmc_dma.c b/drivers/mmc/host/tmio_mmc_dma.c index 331bb618e398..8dbd785366a6 100644 --- a/drivers/mmc/host/tmio_mmc_dma.c +++ b/drivers/mmc/host/tmio_mmc_dma.c | |||
@@ -286,8 +286,6 @@ void tmio_mmc_request_dma(struct tmio_mmc_host *host, struct tmio_mmc_data *pdat | |||
286 | if (!host->chan_tx) | 286 | if (!host->chan_tx) |
287 | return; | 287 | return; |
288 | 288 | ||
289 | if (host->dma->chan_priv_tx) | ||
290 | cfg.slave_id = host->dma->slave_id_tx; | ||
291 | cfg.direction = DMA_MEM_TO_DEV; | 289 | cfg.direction = DMA_MEM_TO_DEV; |
292 | cfg.dst_addr = res->start + (CTL_SD_DATA_PORT << host->bus_shift); | 290 | cfg.dst_addr = res->start + (CTL_SD_DATA_PORT << host->bus_shift); |
293 | cfg.dst_addr_width = host->dma->dma_buswidth; | 291 | cfg.dst_addr_width = host->dma->dma_buswidth; |
@@ -307,8 +305,6 @@ void tmio_mmc_request_dma(struct tmio_mmc_host *host, struct tmio_mmc_data *pdat | |||
307 | if (!host->chan_rx) | 305 | if (!host->chan_rx) |
308 | goto ereqrx; | 306 | goto ereqrx; |
309 | 307 | ||
310 | if (host->dma->chan_priv_rx) | ||
311 | cfg.slave_id = host->dma->slave_id_rx; | ||
312 | cfg.direction = DMA_DEV_TO_MEM; | 308 | cfg.direction = DMA_DEV_TO_MEM; |
313 | cfg.src_addr = cfg.dst_addr + host->pdata->dma_rx_offset; | 309 | cfg.src_addr = cfg.dst_addr + host->pdata->dma_rx_offset; |
314 | cfg.src_addr_width = host->dma->dma_buswidth; | 310 | cfg.src_addr_width = host->dma->dma_buswidth; |