diff options
author | Pramod Gurav <pramod.gurav@smartplayin.com> | 2015-01-21 05:17:17 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-28 06:32:18 -0500 |
commit | e9bb997a8925e95fa3ef30a9c26100d81e600647 (patch) | |
tree | 7476f3a91167b068f8710c068bd9c493920d9243 | |
parent | 3bb10f60933e84abfe2be69f60b3486f9b96348b (diff) |
mmc: mmci: Get rid of dead code in mmci_dma_setup
DMA configuration has been removed from function mmci_dma_setup but the
local mask variable was not removed. This remains unused hence remove
it from the function and operations on it
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/mmci.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 88aefa6fa8b1..7fe16194ebc8 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -430,7 +430,6 @@ static void mmci_init_sg(struct mmci_host *host, struct mmc_data *data) | |||
430 | static void mmci_dma_setup(struct mmci_host *host) | 430 | static void mmci_dma_setup(struct mmci_host *host) |
431 | { | 431 | { |
432 | const char *rxname, *txname; | 432 | const char *rxname, *txname; |
433 | dma_cap_mask_t mask; | ||
434 | struct variant_data *variant = host->variant; | 433 | struct variant_data *variant = host->variant; |
435 | 434 | ||
436 | host->dma_rx_channel = dma_request_slave_channel(mmc_dev(host->mmc), "rx"); | 435 | host->dma_rx_channel = dma_request_slave_channel(mmc_dev(host->mmc), "rx"); |
@@ -439,10 +438,6 @@ static void mmci_dma_setup(struct mmci_host *host) | |||
439 | /* initialize pre request cookie */ | 438 | /* initialize pre request cookie */ |
440 | host->next_data.cookie = 1; | 439 | host->next_data.cookie = 1; |
441 | 440 | ||
442 | /* Try to acquire a generic DMA engine slave channel */ | ||
443 | dma_cap_zero(mask); | ||
444 | dma_cap_set(DMA_SLAVE, mask); | ||
445 | |||
446 | /* | 441 | /* |
447 | * If only an RX channel is specified, the driver will | 442 | * If only an RX channel is specified, the driver will |
448 | * attempt to use it bidirectionally, however if it is | 443 | * attempt to use it bidirectionally, however if it is |