aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.davemloft.net>2004-07-29 23:17:34 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-07-29 23:17:34 -0700
commit845c28d8ca8fb5a56829b38c0215f88b90b5d083 (patch)
treef027b7cc7977bea4a731eef75f86e6cf8bbd15e2 /Documentation
parent99202312a6e44bbe29355c5706064fb71dd33db9 (diff)
parent91096a174dd15381348979208f2cb6bbfab9d92b (diff)
downloadhistory-845c28d8ca8fb5a56829b38c0215f88b90b5d083.tar.gz
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/DMA-mapping.txt4
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;