mtd: nand: pxa3xx_nand: kill unused field 'drcmr_cmd'

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Mar 24 11:59:09 PDT 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4cf9339d2036287b734dfdcadcebc9e3daf380b5
Commit:     4cf9339d2036287b734dfdcadcebc9e3daf380b5
Parent:     471c2aa6fa893bafddc150822f3d5ec4c6b68d8e
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Mon Mar 7 10:37:30 2016 -0800
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Mar 7 12:49:22 2016 -0800

    mtd: nand: pxa3xx_nand: kill unused field 'drcmr_cmd'
    
    With this removal, we don't need to 'get' the second DMA resource
    either, as it's also unused.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Acked-by: Robert Jarzmik <robert.jarzmik at free.fr>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/pxa3xx_nand.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index f100c4d..d650885 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -211,7 +211,6 @@ struct pxa3xx_nand_info {
 	struct dma_chan		*dma_chan;
 	dma_cookie_t		dma_cookie;
 	int			drcmr_dat;
-	int			drcmr_cmd;
 
 	unsigned char		*data_buff;
 	unsigned char		*oob_buff;
@@ -1804,15 +1803,6 @@ static int alloc_nand_resource(struct platform_device *pdev)
 			goto fail_disable_clk;
 		}
 		info->drcmr_dat = r->start;
-
-		r = platform_get_resource(pdev, IORESOURCE_DMA, 1);
-		if (r == NULL) {
-			dev_err(&pdev->dev,
-				"no resource defined for cmd DMA\n");
-			ret = -ENXIO;
-			goto fail_disable_clk;
-		}
-		info->drcmr_cmd = r->start;
 	}
 
 	irq = platform_get_irq(pdev, 0);



More information about the linux-mtd-cvs mailing list