diff options
author | Matti Linnanvuori <mattilinnanvuori@yahoo.com> | 2008-04-28 12:33:27 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.lan> | 2008-04-28 13:07:28 -0400 |
commit | 97a34eb77c758ff7821c2d29b3b5a84299c93aa1 (patch) | |
tree | 4dc366d87f30471de8e00070d51fa4ad9f80ca51 /Documentation | |
parent | 819e32377e401669d2c010f1a0ce12fe43ea5261 (diff) |
doc: fix an incorrect suggestion to pass NULL for PCI like buses
Fix an incorrect suggestion to pass NULL to pci_alloc_consistent
for PCI like buses where devices don't have struct pci_dev (like ISA, EISA).
Signed-off-by: Matti Linnanvuori <mattilinnanvuori@yahoo.com>
Acked-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@hobbes.lan>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/DMA-mapping.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/DMA-mapping.txt b/Documentation/DMA-mapping.txt index b49427aa8510..d8347c1fd032 100644 --- a/Documentation/DMA-mapping.txt +++ b/Documentation/DMA-mapping.txt | |||
@@ -317,9 +317,9 @@ you should do: | |||
317 | 317 | ||
318 | cpu_addr = pci_alloc_consistent(pdev, size, &dma_handle); | 318 | cpu_addr = pci_alloc_consistent(pdev, size, &dma_handle); |
319 | 319 | ||
320 | where pdev is a struct pci_dev *. You should pass NULL for PCI like buses | 320 | where pdev is a struct pci_dev *. This may be called in interrupt context. |
321 | where devices don't have struct pci_dev (like ISA, EISA). This may be | 321 | You should use dma_alloc_coherent (see DMA-API.txt) for buses |
322 | called in interrupt context. | 322 | where devices don't have struct pci_dev (like ISA, EISA). |
323 | 323 | ||
324 | This argument is needed because the DMA translations may be bus | 324 | This argument is needed because the DMA translations may be bus |
325 | specific (and often is private to the bus which the device is attached | 325 | specific (and often is private to the bus which the device is attached |