mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
mtd: nand: use dmaengine_submit() instead of ->tx_submit()
Replace direct dma_async_tx_descriptor->tx_submit() calls with the proper dmaengine_submit() API wrapper. Assisted-by: LLM Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
0d1644566a
commit
8bef0196a4
|
|
@ -340,9 +340,9 @@ static inline int omap2_onenand_dma_transfer(struct omap2_onenand *c,
|
|||
tx->callback = omap2_onenand_dma_complete_func;
|
||||
tx->callback_param = &c->dma_done;
|
||||
|
||||
cookie = tx->tx_submit(tx);
|
||||
cookie = dmaengine_submit(tx);
|
||||
if (dma_submit_error(cookie)) {
|
||||
dev_err(&c->pdev->dev, "Failed to do DMA tx_submit\n");
|
||||
dev_err(&c->pdev->dev, "Failed to do dmaengine_submit\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ static int dma_xfer(struct fsmc_nand_data *host, void *buffer, int len,
|
|||
|
||||
tx->callback = dma_complete;
|
||||
tx->callback_param = host;
|
||||
cookie = tx->tx_submit(tx);
|
||||
cookie = dmaengine_submit(tx);
|
||||
|
||||
ret = dma_submit_error(cookie);
|
||||
if (ret) {
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ static int ebu_dma_start(struct ebu_nand_controller *ebu_host, u32 dir,
|
|||
|
||||
tx->callback = callback;
|
||||
tx->callback_param = ebu_host;
|
||||
cookie = tx->tx_submit(tx);
|
||||
cookie = dmaengine_submit(tx);
|
||||
|
||||
ret = dma_submit_error(cookie);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user