mtd: lpc32xx_slc: Adjust to pl08x DMA interface changes

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Jul 13 17:59:01 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=314a15664e028e6bcafc03495cc492645d9df4df
Commit:     314a15664e028e6bcafc03495cc492645d9df4df
Parent:     2c99b8bfb22342ab0c06e07ee54fa0d5e638e52a
Author:     Roland Stigge <stigge at antcom.de>
AuthorDate: Thu Jul 12 14:22:56 2012 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jul 13 16:27:24 2012 +0100

    mtd: lpc32xx_slc: Adjust to pl08x DMA interface changes
    
    This patch adjusts the LPC32xx SLC NAND driver to the new pl08x DMA interface,
    fixing the compile error resulting from changed pl08x structures.
    
    Signed-off-by: Roland Stigge <stigge at antcom.de>
    Acked-By: Alexandre Pereira da Silva <aletes.xgr at gmail.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/lpc32xx_slc.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/mtd/nand/lpc32xx_slc.c b/drivers/mtd/nand/lpc32xx_slc.c
index 1719387..c8c1d06 100644
--- a/drivers/mtd/nand/lpc32xx_slc.c
+++ b/drivers/mtd/nand/lpc32xx_slc.c
@@ -714,17 +714,6 @@ static int lpc32xx_nand_write_page_raw_syndrome(struct mtd_info *mtd,
 	return 0;
 }
 
-static bool lpc32xx_dma_filter(struct dma_chan *chan, void *param)
-{
-	struct pl08x_dma_chan *ch =
-		container_of(chan, struct pl08x_dma_chan, chan);
-
-	/* In LPC32xx's PL080 DMA wiring, the SLC NAND DMA signal is #1 */
-	if (ch->cd->min_signal == 1)
-		return true;
-	return false;
-}
-
 static int lpc32xx_nand_dma_setup(struct lpc32xx_nand_host *host)
 {
 	struct mtd_info *mtd = &host->mtd;
@@ -732,7 +721,7 @@ static int lpc32xx_nand_dma_setup(struct lpc32xx_nand_host *host)
 
 	dma_cap_zero(mask);
 	dma_cap_set(DMA_SLAVE, mask);
-	host->dma_chan = dma_request_channel(mask, lpc32xx_dma_filter, NULL);
+	host->dma_chan = dma_request_channel(mask, pl08x_filter_id, "nand-slc");
 	if (!host->dma_chan) {
 		dev_err(mtd->dev.parent, "Failed to request DMA channel\n");
 		return -EBUSY;



More information about the linux-mtd-cvs mailing list