since no boundary restrictions apply, a zero boundary argument to

bus_dmamem_alloc() is the right thing
This commit is contained in:
drochner 2007-03-21 17:15:53 +00:00
parent 7a0663bdb7
commit d414de4f1a
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ drm_pci_alloc(drm_device_t *dev, size_t size, size_t align, dma_addr_t maxaddr)
return NULL; return NULL;
} }
#elif defined(__NetBSD__) #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); &dmah->seg, 1, &nsegs, BUS_DMA_NOWAIT);
if (ret != 0) { if (ret != 0) {
aprint_error("%s: bus_dmamem_alloc(%zd, %zd) returned %d\n", aprint_error("%s: bus_dmamem_alloc(%zd, %zd) returned %d\n",