[PATCH] correct dma_set_mask return code in DMA-API.txt

From: Stelian Pop
Date: Wed Dec 15 2004 - 04:27:05 EST


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).

Trivial patch attached, please apply.

Stelian.

===== Documentation/DMA-API.txt 1.9 vs edited =====
--- 1.9/Documentation/DMA-API.txt 2004-07-01 04:01:43 +02:00
+++ edited/Documentation/DMA-API.txt 2004-12-15 10:01:27 +01:00
@@ -160,7 +160,7 @@
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)
--
Stelian Pop <stelian@xxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/