summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-09-30 18:52:43 +0000
committermarius <marius@FreeBSD.org>2008-09-30 18:52:43 +0000
commitf5560792860ce2d510f62c76daa1b257bd205a1e (patch)
treec4d337bdc27832eed1dffb5777f0818b8f96a57a /sys
parent3eb652b1c79b8dda2836d1fddb3e91cabfff826b (diff)
downloadFreeBSD-src-f5560792860ce2d510f62c76daa1b257bd205a1e.zip
FreeBSD-src-f5560792860ce2d510f62c76daa1b257bd205a1e.tar.gz
Use bus_get_dma_tag() so fatm(4) works on platforms requiring it.
Reported and tested by: Sean Thomas Caron MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fatm/if_fatm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fatm/if_fatm.c b/sys/dev/fatm/if_fatm.c
index 1c3bf69..47a6443 100644
--- a/sys/dev/fatm/if_fatm.c
+++ b/sys/dev/fatm/if_fatm.c
@@ -2880,7 +2880,7 @@ fatm_attach(device_t dev)
* restrictions for the controller (and PCI bus) and is never used
* to do anything.
*/
- if (bus_dma_tag_create(NULL, 1, 0,
+ if (bus_dma_tag_create(bus_get_dma_tag(dev), 1, 0,
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR,
NULL, NULL, BUS_SPACE_MAXSIZE_32BIT, MAXDMASEGS,
BUS_SPACE_MAXSIZE_32BIT, 0, NULL, NULL,
OpenPOWER on IntegriCloud