summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2012-03-12 08:03:51 +0000
committerscottl <scottl@FreeBSD.org>2012-03-12 08:03:51 +0000
commit32e16cef409bd0f9bd89f7ed3f8372af410308a0 (patch)
treedc5d4c305b98bef1388bcb9d1d8e32413a75f5af /sys/dev/mlx
parentac2071063e8d399aef49037a97358e68d356f582 (diff)
downloadFreeBSD-src-32e16cef409bd0f9bd89f7ed3f8372af410308a0.zip
FreeBSD-src-32e16cef409bd0f9bd89f7ed3f8372af410308a0.tar.gz
Convert a number of drivers to obtaining their parent DMA tag from their
PCI device attachment.
Diffstat (limited to 'sys/dev/mlx')
-rw-r--r--sys/dev/mlx/mlx_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx/mlx_pci.c b/sys/dev/mlx/mlx_pci.c
index 00d0fe2..92ad878 100644
--- a/sys/dev/mlx/mlx_pci.c
+++ b/sys/dev/mlx/mlx_pci.c
@@ -189,7 +189,7 @@ mlx_pci_attach(device_t dev)
/*
* Allocate the parent bus DMA tag appropriate for PCI.
*/
- error = bus_dma_tag_create(NULL, /* parent */
+ error = bus_dma_tag_create(bus_get_dma_tag(dev), /* PCI parent */
1, 0, /* alignment, boundary */
BUS_SPACE_MAXADDR_32BIT, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
OpenPOWER on IntegriCloud