diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-12-13 20:22:27 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-12-14 22:45:16 +0100 |
commit | 9b432630e0150b777c423fdef6a7b8d17dfa70b6 (patch) | |
tree | e076ab94e60a1aa9c3ea48b78fd2b4401bd474d6 /drivers/mtd/nand | |
parent | b637ef779575a977068025f842ecd480a9671f3f (diff) | |
download | linux-stable-9b432630e0150b777c423fdef6a7b8d17dfa70b6.tar.gz linux-stable-9b432630e0150b777c423fdef6a7b8d17dfa70b6.tar.bz2 linux-stable-9b432630e0150b777c423fdef6a7b8d17dfa70b6.zip |
mtd: rawnand: omap2: Pass the parent of pdev to dma_request_chan()
Commit e1e6255c311b ("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: e1e6255c311b ("mtd: rawnand: omap2: convert driver to nand_scan()")
Reported-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/raw/omap2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/omap2.c b/drivers/mtd/nand/raw/omap2.c index 886d05c391ef..68e8b9f7f372 100644 --- a/drivers/mtd/nand/raw/omap2.c +++ b/drivers/mtd/nand/raw/omap2.c @@ -1944,7 +1944,7 @@ static int omap_nand_attach_chip(struct nand_chip *chip) case NAND_OMAP_PREFETCH_DMA: dma_cap_zero(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)) { dev_err(dev, "DMA engine request failed\n"); |