summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-01-27 15:29:01 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-01-27 15:29:01 +0000
commitb44529d3ba247db5e47484d5be2e8789d0f8bc75 (patch)
treebc4194ff23636fb66fb6501ad13a50c605ddd233 /sys/dev
parentffa85b2ead7c721e5cec84bce53037a0ac01e862 (diff)
xen_bus_dma_init turned out to be unnecessary
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pv/xen.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c
index 8b59cea8fd3..c7c5ad661ac 100644
--- a/sys/dev/pv/xen.c
+++ b/sys/dev/pv/xen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xen.c,v 1.41 2016/01/27 15:27:53 mikeb Exp $ */
+/* $OpenBSD: xen.c,v 1.42 2016/01/27 15:29:00 mikeb Exp $ */
/*
* Copyright (c) 2015 Mike Belopuhov
@@ -69,7 +69,6 @@ void xen_resume(struct device *);
int xen_activate(struct device *, int);
int xen_probe_devices(struct xen_softc *);
-void xen_bus_dma_init(struct xen_softc *);
int xen_bus_dmamap_create(bus_dma_tag_t, bus_size_t, int, bus_size_t,
bus_size_t, int, bus_dmamap_t *);
void xen_bus_dmamap_destroy(bus_dma_tag_t, bus_dmamap_t);
@@ -806,7 +805,7 @@ xen_init_grant_tables(struct xen_softc *sc)
printf(", %u grant table frames", sc->sc_gntcnt);
- xen_bus_dma_init(sc);
+ xen_bus_dma_tag._cookie = sc;
return (0);
}
@@ -969,12 +968,6 @@ xen_grant_table_remove(struct xen_softc *sc, grant_ref_t ref)
}
}
-void
-xen_bus_dma_init(struct xen_softc *sc)
-{
- xen_bus_dma_tag._cookie = sc;
-}
-
int
xen_bus_dmamap_create(bus_dma_tag_t t, bus_size_t size, int nsegments,
bus_size_t maxsegsz, bus_size_t boundary, int flags, bus_dmamap_t *dmamp)