diff options
author | David S. Miller <davem@nuts.davemloft.net> | 2004-07-29 05:36:08 -0700 |
---|---|---|
committer | David S. Miller <davem@nuts.davemloft.net> | 2004-07-29 05:36:08 -0700 |
commit | 91096a174dd15381348979208f2cb6bbfab9d92b (patch) | |
tree | 6423148e5e633ea28a151a2b8a5b7a511f1b3dcb /Documentation | |
parent | 2ddb7fbaf9dbef76084f3ebc27a7c25f7e5c37ab (diff) | |
download | history-91096a174dd15381348979208f2cb6bbfab9d92b.tar.gz |
[DMA]: Fix example code in DMA-mapping.txt
Spotted by Jack Spaar <jspaar@myrealbox.com>
Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/DMA-mapping.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/DMA-mapping.txt b/Documentation/DMA-mapping.txt index 13a53cb878d479..f4ac37f157ea90 100644 --- a/Documentation/DMA-mapping.txt +++ b/Documentation/DMA-mapping.txt @@ -222,14 +222,14 @@ Here is pseudo-code showing how this might be done: struct pci_dev *pdev; ... - if (pci_set_dma_mask(pdev, PLAYBACK_ADDRESS_BITS)) { + if (!pci_set_dma_mask(pdev, PLAYBACK_ADDRESS_BITS)) { card->playback_enabled = 1; } else { card->playback_enabled = 0; printk(KERN_WARN "%s: Playback disabled due to DMA limitations.\n", card->name); } - if (pci_set_dma_mask(pdev, RECORD_ADDRESS_BITS)) { + if (!pci_set_dma_mask(pdev, RECORD_ADDRESS_BITS)) { card->record_enabled = 1; } else { card->record_enabled = 0; |