Skip to content

Commit b1baec5

Browse files
Shawn GuoVinod Koul
authored andcommitted
dma: mxs-dma: remove code left from generic DMA binding conversion
With all mxs-dma clients moved to use generic DMA helper, the code left from generic DMA binding conversion can be removed now. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent e8690fc commit b1baec5

2 files changed

Lines changed: 0 additions & 43 deletions

File tree

‎drivers/dma/mxs-dma.c‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <linux/dmaengine.h>
2424
#include <linux/delay.h>
2525
#include <linux/module.h>
26-
#include <linux/fsl/mxs-dma.h>
2726
#include <linux/stmp_device.h>
2827
#include <linux/of.h>
2928
#include <linux/of_device.h>
@@ -197,24 +196,6 @@ static struct mxs_dma_chan *to_mxs_dma_chan(struct dma_chan *chan)
197196
return container_of(chan, struct mxs_dma_chan, chan);
198197
}
199198

200-
int mxs_dma_is_apbh(struct dma_chan *chan)
201-
{
202-
struct mxs_dma_chan *mxs_chan = to_mxs_dma_chan(chan);
203-
struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma;
204-
205-
return dma_is_apbh(mxs_dma);
206-
}
207-
EXPORT_SYMBOL_GPL(mxs_dma_is_apbh);
208-
209-
int mxs_dma_is_apbx(struct dma_chan *chan)
210-
{
211-
struct mxs_dma_chan *mxs_chan = to_mxs_dma_chan(chan);
212-
struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma;
213-
214-
return !dma_is_apbh(mxs_dma);
215-
}
216-
EXPORT_SYMBOL_GPL(mxs_dma_is_apbx);
217-
218199
static void mxs_dma_reset_chan(struct mxs_dma_chan *mxs_chan)
219200
{
220201
struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma;
@@ -349,13 +330,9 @@ static irqreturn_t mxs_dma_int_handler(int irq, void *dev_id)
349330
static int mxs_dma_alloc_chan_resources(struct dma_chan *chan)
350331
{
351332
struct mxs_dma_chan *mxs_chan = to_mxs_dma_chan(chan);
352-
struct mxs_dma_data *data = chan->private;
353333
struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma;
354334
int ret;
355335

356-
if (data)
357-
mxs_chan->chan_irq = data->chan_irq;
358-
359336
mxs_chan->ccw = dma_alloc_coherent(mxs_dma->dma_device.dev,
360337
CCW_BLOCK_SIZE, &mxs_chan->ccw_phys,
361338
GFP_KERNEL);

‎include/linux/fsl/mxs-dma.h‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)