diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-02-16 20:47:01 -0500 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2015-02-23 05:42:25 -0500 |
| commit | 5f48dd0690cbcea3f35b9ef2f05d5468dedc80b0 (patch) | |
| tree | 8f3f044fabb27a543a3672e55de54be14061850f /drivers | |
| parent | 411fdaf846afb0be1b54383c184f58a42fa416ff (diff) | |
mmc: sh_mmcif: remove slave_id settings for DMAEngine
Current sh_mmcif 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: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mmc/host/sh_mmcif.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 7d9d6a321521..26b7889febb2 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c | |||
| @@ -388,7 +388,7 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host, | |||
| 388 | { | 388 | { |
| 389 | struct dma_slave_config cfg = { 0, }; | 389 | struct dma_slave_config cfg = { 0, }; |
| 390 | struct dma_chan *chan; | 390 | struct dma_chan *chan; |
| 391 | unsigned int slave_id; | 391 | void *slave_data = NULL; |
| 392 | struct resource *res; | 392 | struct resource *res; |
| 393 | dma_cap_mask_t mask; | 393 | dma_cap_mask_t mask; |
| 394 | int ret; | 394 | int ret; |
| @@ -397,13 +397,12 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host, | |||
| 397 | dma_cap_set(DMA_SLAVE, mask); | 397 | dma_cap_set(DMA_SLAVE, mask); |
| 398 | 398 | ||
| 399 | if (pdata) | 399 | if (pdata) |
| 400 | slave_id = direction == DMA_MEM_TO_DEV | 400 | slave_data = direction == DMA_MEM_TO_DEV ? |
| 401 | ? pdata->slave_id_tx : pdata->slave_id_rx; | 401 | (void *)pdata->slave_id_tx : |
| 402 | else | 402 | (void *)pdata->slave_id_rx; |
| 403 | slave_id = 0; | ||
| 404 | 403 | ||
| 405 | chan = dma_request_slave_channel_compat(mask, shdma_chan_filter, | 404 | chan = dma_request_slave_channel_compat(mask, shdma_chan_filter, |
| 406 | (void *)(unsigned long)slave_id, &host->pd->dev, | 405 | slave_data, &host->pd->dev, |
| 407 | direction == DMA_MEM_TO_DEV ? "tx" : "rx"); | 406 | direction == DMA_MEM_TO_DEV ? "tx" : "rx"); |
| 408 | 407 | ||
| 409 | dev_dbg(&host->pd->dev, "%s: %s: got channel %p\n", __func__, | 408 | dev_dbg(&host->pd->dev, "%s: %s: got channel %p\n", __func__, |
| @@ -414,8 +413,6 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host, | |||
| 414 | 413 | ||
| 415 | res = platform_get_resource(host->pd, IORESOURCE_MEM, 0); | 414 | res = platform_get_resource(host->pd, IORESOURCE_MEM, 0); |
| 416 | 415 | ||
| 417 | /* In the OF case the driver will get the slave ID from the DT */ | ||
| 418 | cfg.slave_id = slave_id; | ||
| 419 | cfg.direction = direction; | 416 | cfg.direction = direction; |
| 420 | 417 | ||
| 421 | if (direction == DMA_DEV_TO_MEM) { | 418 | if (direction == DMA_DEV_TO_MEM) { |
