mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mtd: rawnand: omap2: Pass the parent of pdev to dma_request_chan()
Commite1e6255c31("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:e1e6255c31("mtd: rawnand: omap2: convert driver to nand_scan()") Reported-by: Alexander Sverdlin <[email protected]> Cc: <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Tested-by: Alexander Sverdlin <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
This commit is contained in:
parent
b637ef7795
commit
9b432630e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue