summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorPramod Gurav <pramod.gurav@smartplayin.com>2015-01-21 15:47:17 +0530
committerUlf Hansson <ulf.hansson@linaro.org>2015-01-28 12:32:18 +0100
commite9bb997a8925e95fa3ef30a9c26100d81e600647 (patch)
tree7476f3a91167b068f8710c068bd9c493920d9243 /drivers/mmc/host
parent3bb10f60933e84abfe2be69f60b3486f9b96348b (diff)
downloadop-kernel-dev-e9bb997a8925e95fa3ef30a9c26100d81e600647.zip
op-kernel-dev-e9bb997a8925e95fa3ef30a9c26100d81e600647.tar.gz
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>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/mmci.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 88aefa6..7fe1619 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)
static void mmci_dma_setup(struct mmci_host *host)
{
const char *rxname, *txname;
- dma_cap_mask_t mask;
struct variant_data *variant = host->variant;
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)
/* initialize pre request cookie */
host->next_data.cookie = 1;
- /* Try to acquire a generic DMA engine slave channel */
- dma_cap_zero(mask);
- dma_cap_set(DMA_SLAVE, mask);
-
/*
* If only an RX channel is specified, the driver will
* attempt to use it bidirectionally, however if it is
OpenPOWER on IntegriCloud