Commit 4cf9339d authored by Brian Norris's avatar Brian Norris

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: default avatarBrian Norris <computersforpeace@gmail.com>
Acked-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 471c2aa6
...@@ -211,7 +211,6 @@ struct pxa3xx_nand_info { ...@@ -211,7 +211,6 @@ struct pxa3xx_nand_info {
struct dma_chan *dma_chan; struct dma_chan *dma_chan;
dma_cookie_t dma_cookie; dma_cookie_t dma_cookie;
int drcmr_dat; int drcmr_dat;
int drcmr_cmd;
unsigned char *data_buff; unsigned char *data_buff;
unsigned char *oob_buff; unsigned char *oob_buff;
...@@ -1804,15 +1803,6 @@ static int alloc_nand_resource(struct platform_device *pdev) ...@@ -1804,15 +1803,6 @@ static int alloc_nand_resource(struct platform_device *pdev)
goto fail_disable_clk; goto fail_disable_clk;
} }
info->drcmr_dat = r->start; 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); irq = platform_get_irq(pdev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment