Skip to content

Commit

Permalink
mmc: atmel-mci: remove compat for non DT board when requesting dma chan
Browse files Browse the repository at this point in the history
All boards with a dma controller have DT support so using
dma_request_slave_channel_compat is no more needed.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
ludovic.desroches@atmel.com authored and Ulf Hansson committed Nov 26, 2014
1 parent 7675623 commit ecb89f2
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions drivers/mmc/host/atmel-mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2272,23 +2272,6 @@ static void atmci_cleanup_slot(struct atmel_mci_slot *slot,
mmc_free_host(slot->mmc);
}

static bool atmci_filter(struct dma_chan *chan, void *pdata)
{
struct mci_platform_data *sl_pdata = pdata;
struct mci_dma_data *sl;

if (!sl_pdata)
return false;

sl = sl_pdata->dma_slave;
if (sl && find_slave_dev(sl) == chan->device->dev) {
chan->private = slave_data_ptr(sl);
return true;
} else {
return false;
}
}

static bool atmci_configure_dma(struct atmel_mci *host)
{
struct mci_platform_data *pdata;
Expand All @@ -2302,8 +2285,7 @@ static bool atmci_configure_dma(struct atmel_mci *host)
dma_cap_zero(mask);
dma_cap_set(DMA_SLAVE, mask);

host->dma.chan = dma_request_slave_channel_compat(mask, atmci_filter, pdata,
&host->pdev->dev, "rxtx");
host->dma.chan = dma_request_slave_channel(&host->pdev->dev, "rxtx");
if (!host->dma.chan) {
dev_warn(&host->pdev->dev, "no DMA channel available\n");
return false;
Expand Down

0 comments on commit ecb89f2

Please sign in to comment.