diff options
author | Scott Long <scottl@FreeBSD.org> | 2012-03-16 08:46:58 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2012-03-16 08:46:58 +0000 |
commit | 03f15131ec6a584935fd83d33e1a1dc1500c3880 (patch) | |
tree | 3729c840b9550580d810e838c3faf7f24aac9659 /sys/dev/safe/safe.c | |
parent | b9d98828d052268932457c558cc9dc5d9f3b0213 (diff) | |
download | src-03f15131ec6a584935fd83d33e1a1dc1500c3880.tar.gz src-03f15131ec6a584935fd83d33e1a1dc1500c3880.zip |
Notes
Diffstat (limited to 'sys/dev/safe/safe.c')
-rw-r--r-- | sys/dev/safe/safe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/safe/safe.c b/sys/dev/safe/safe.c index 7346327444ac..c404a6dcf6e0 100644 --- a/sys/dev/safe/safe.c +++ b/sys/dev/safe/safe.c @@ -287,7 +287,7 @@ safe_attach(device_t dev) /* * Setup DMA descriptor area. */ - if (bus_dma_tag_create(NULL, /* parent */ + if (bus_dma_tag_create(bus_get_dma_tag(dev), /* parent */ 1, /* alignment */ SAFE_DMA_BOUNDARY, /* boundary */ BUS_SPACE_MAXADDR_32BIT, /* lowaddr */ @@ -302,7 +302,7 @@ safe_attach(device_t dev) device_printf(dev, "cannot allocate DMA tag\n"); goto bad4; } - if (bus_dma_tag_create(NULL, /* parent */ + if (bus_dma_tag_create(bus_get_dma_tag(dev), /* parent */ 1, /* alignment */ SAFE_MAX_DSIZE, /* boundary */ BUS_SPACE_MAXADDR_32BIT, /* lowaddr */ @@ -1802,7 +1802,7 @@ safe_dma_malloc( { int r; - r = bus_dma_tag_create(NULL, /* parent */ + r = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), /* parent */ sizeof(u_int32_t), 0, /* alignment, bounds */ BUS_SPACE_MAXADDR_32BIT, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ |