From: Marin Mitov Date: Mon, 22 Sep 2008 20:57:46 +0000 (-0700) Subject: Documentation/DMA-mapping.txt: update for pci_dma_mapping_error() changes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6675ce13ed783f88ea5d82f0d855462b76ff0dad;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Documentation/DMA-mapping.txt: update for pci_dma_mapping_error() changes Make the example code consistent with changed API. Signed-off-by: Marin Mitov Acked-by: FUJITA Tomonori Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/DMA-mapping.txt b/Documentation/DMA-mapping.txt index b463ecd0c7ce..c74fec8c2351 100644 --- a/Documentation/DMA-mapping.txt +++ b/Documentation/DMA-mapping.txt @@ -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