Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6675ce13 authored by Marin Mitov's avatar Marin Mitov Committed by Linus Torvalds
Browse files

Documentation/DMA-mapping.txt: update for pci_dma_mapping_error() changes



Make the example code consistent with changed API.

Signed-off-by: default avatarMarin Mitov <mitov@ispp.bas.bg>
Acked-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f9092f35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -740,7 +740,7 @@ failure can be determined by:
	dma_addr_t dma_handle;

	dma_handle = pci_map_single(pdev, addr, size, direction);
	if (pci_dma_mapping_error(dma_handle)) {
	if (pci_dma_mapping_error(pdev, dma_handle)) {
		/*
		 * reduce current DMA mapping usage,
		 * delay and try again later or