Skip to content

Commit 349d5c8

Browse files
damien-lemoalbjorn-helgaas
authored andcommitted
PCI: epf-test: Use dmaengine_submit() to initiate DMA transfer
Instead of an open coded call to the tx_submit() operation of struct dma_async_tx_descriptor, use the helper function dmaengine_submit(). No functional change is introduced with this. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]>
1 parent 933f31a commit 349d5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/endpoint/functions/pci-epf-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static int pci_epf_test_data_transfer(struct pci_epf_test *epf_test,
163163
epf_test->transfer_chan = chan;
164164
tx->callback = pci_epf_test_dma_callback;
165165
tx->callback_param = epf_test;
166-
epf_test->transfer_cookie = tx->tx_submit(tx);
166+
epf_test->transfer_cookie = dmaengine_submit(tx);
167167

168168
ret = dma_submit_error(epf_test->transfer_cookie);
169169
if (ret) {

0 commit comments

Comments
 (0)