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.karo-electronics.de/?a=commitdiff_plain;h=6675ce13ed783f88ea5d82f0d855462b76ff0dad;p=linux-beck.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