summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2005-06-06 20:31:13 +0000
committerJason Wright <jason@cvs.openbsd.org>2005-06-06 20:31:13 +0000
commit96463469ef946c0a7914fbff357dc53935eb8b7c (patch)
tree0e2b628539cb6f328d3136f00aa6ebf6bf83895c /sys
parentaaaa8c4cd2c233936b52691fe56a2ba6746af26e (diff)
-no need to hang onto virtual-dma parameter from prom, free it
-formatting nits
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/dev/psycho.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c
index b9dd9467f3e..7ef8a64e5d9 100644
--- a/sys/arch/sparc64/dev/psycho.c
+++ b/sys/arch/sparc64/dev/psycho.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: psycho.c,v 1.40 2005/01/27 21:17:50 miod Exp $ */
+/* $OpenBSD: psycho.c,v 1.41 2005/06/06 20:31:12 jason Exp $ */
/* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */
/*
@@ -831,6 +831,7 @@ psycho_iommu_init(struct psycho_softc *sc, int tsbsize)
}
#undef TSBCASE
DPRINTF(PDB_CONF, ("psycho_iommu_init: iobase=0x%x\n", iobase));
+ free(vdma, M_DEVBUF);
}
else {
DPRINTF(PDB_CONF, ("psycho_iommu_init: getprop failed, "
@@ -888,7 +889,7 @@ _psycho_alloc_bus_tag(struct psycho_pbm *pp,
bzero(bt, sizeof *bt);
snprintf(bt->name, sizeof(bt->name), "%s-pbm_%s(%d-%2.2x)",
- sc->sc_dev.dv_xname, name, ss, asi);
+ sc->sc_dev.dv_xname, name, ss, asi);
bt->cookie = pp;
bt->parent = sc->sc_bustag;
@@ -908,8 +909,8 @@ psycho_alloc_dma_tag(struct psycho_pbm *pp)
struct psycho_softc *sc = pp->pp_sc;
bus_dma_tag_t dt, pdt = sc->sc_dmatag;
- dt = (bus_dma_tag_t)
- malloc(sizeof(struct sparc_bus_dma_tag), M_DEVBUF, M_NOWAIT);
+ dt = (bus_dma_tag_t)malloc(sizeof(struct sparc_bus_dma_tag),
+ M_DEVBUF, M_NOWAIT);
if (dt == NULL)
panic("could not allocate psycho dma tag");