diff options
| author | drochner <drochner@NetBSD.org> | 2007-03-21 17:15:53 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2007-03-21 17:15:53 +0000 |
| commit | d414de4f1a95f25445f6592432eb8abeb2ce8d73 (patch) | |
| tree | 3ccb6db3b61d31ed16a2b459e2fc57f1a5f27a09 /sys/dev/drm | |
| parent | 7a0663bdb73b95751e9d1b62baffaa56f8902bd5 (diff) | |
since no boundary restrictions apply, a zero boundary argument to
bus_dmamem_alloc() is the right thing
Diffstat (limited to 'sys/dev/drm')
| -rw-r--r-- | sys/dev/drm/drm_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_pci.c b/sys/dev/drm/drm_pci.c index 05ada44c158..41c6f7a8a16 100644 --- a/sys/dev/drm/drm_pci.c +++ b/sys/dev/drm/drm_pci.c @@ -106,7 +106,7 @@ drm_pci_alloc(drm_device_t *dev, size_t size, size_t align, dma_addr_t maxaddr) return NULL; } #elif defined(__NetBSD__) - ret = bus_dmamem_alloc(dev->pa.pa_dmat, size, align, size, + ret = bus_dmamem_alloc(dev->pa.pa_dmat, size, align, 0, &dmah->seg, 1, &nsegs, BUS_DMA_NOWAIT); if (ret != 0) { aprint_error("%s: bus_dmamem_alloc(%zd, %zd) returned %d\n", |
