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-Tag: v2.6.27-rc8~41 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6675ce13ed783f88ea5d82f0d855462b76ff0dad;p=linux-2.6-omap-h63xx.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 b463ecd0c7c..c74fec8c235 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