]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] correct dma_set_mask return code in DMA-API.txt
authorStelian Pop <stelian@popies.net>
Wed, 15 Dec 2004 03:20:17 +0000 (19:20 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 15 Dec 2004 03:20:17 +0000 (19:20 -0800)
The documentation says dma_set_api() returns 1 on success and
0 on error, which is plain wrong, standard kernel return codes
are used instead (0 on ok, -ESOMETHING on error).

Documentation/DMA-API.txt

index 8787c4d099a654a52f151a4f35e07eea6555870f..6ee3cd6134dfad024bccff633ac2bece79fc0db6 100644 (file)
@@ -160,7 +160,7 @@ pci_set_dma_mask(struct pci_device *dev, u64 mask)
 Checks to see if the mask is possible and updates the device
 parameters if it is.
 
-Returns: 1 if successful and 0 if not
+Returns: 0 if successful and a negative error if not.
 
 u64
 dma_get_required_mask(struct device *dev)