public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]pci_dma_mapping_error changes
@ 2008-09-18  5:12 Marin Mitov
  2008-09-18 14:06 ` FUJITA Tomonori
  2008-09-18 16:11 ` Jeff Garzik
  0 siblings, 2 replies; 4+ messages in thread
From: Marin Mitov @ 2008-09-18  5:12 UTC (permalink / raw)
  To: linux-kernel

Make the example code consistent with changed API.

Signed-off-by: Marin Mitov <mitov@ispp.bas.bg>

===================================================
--- a/Documentation/DMA-mapping.txt	2008-09-14 11:34:48.000000000 +0300
+++ b/Documentation/DMA-mapping.txt	2008-09-14 11:37:17.000000000 +0300
@@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-23 21:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-18  5:12 [PATCH]pci_dma_mapping_error changes Marin Mitov
2008-09-18 14:06 ` FUJITA Tomonori
2008-09-18 16:11 ` Jeff Garzik
2008-09-23 21:26   ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox