![]() | |||||||||||
Messages in this thread Patch in this message |
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@popies.net> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||
| Last update: 2005-03-22 14:08 [from the cache] ©2003-2008 | |||||||||||