Commit 9b432630 authored by Boris Brezillon's avatar Boris Brezillon Committed by Miquel Raynal

mtd: rawnand: omap2: Pass the parent of pdev to dma_request_chan()

Commit e1e6255c ("mtd: rawnand: omap2: convert driver to
nand_scan()") moved part of the init code in the ->attach_chip hook
and at the same time changed the struct device object passed to
dma_request_chan() (&pdev->dev instead of pdev->dev.parent).

Fixes: e1e6255c ("mtd: rawnand: omap2: convert driver to nand_scan()")
Reported-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Tested-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent b637ef77
...@@ -1944,7 +1944,7 @@ static int omap_nand_attach_chip(struct nand_chip *chip) ...@@ -1944,7 +1944,7 @@ static int omap_nand_attach_chip(struct nand_chip *chip)
case NAND_OMAP_PREFETCH_DMA: case NAND_OMAP_PREFETCH_DMA:
dma_cap_zero(mask); dma_cap_zero(mask);
dma_cap_set(DMA_SLAVE, mask); dma_cap_set(DMA_SLAVE, mask);
info->dma = dma_request_chan(dev, "rxtx"); info->dma = dma_request_chan(dev->parent, "rxtx");
if (IS_ERR(info->dma)) { if (IS_ERR(info->dma)) {
dev_err(dev, "DMA engine request failed\n"); dev_err(dev, "DMA engine request failed\n");
......
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