From 962d1ca78bc977888c34dd245e1a12f4207e9d2a Mon Sep 17 00:00:00 2001 From: Stelian Pop <stelian@popies.net> Date: Tue, 14 Dec 2004 19:20:17 -0800 Subject: [PATCH] [PATCH] correct dma_set_mask return code in DMA-API.txt 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DMA-API.txt b/Documentation/DMA-API.txt index 8787c4d099a6..6ee3cd6134df 100644 --- a/Documentation/DMA-API.txt +++ b/Documentation/DMA-API.txt @@ -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) -- 2.30.9