aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/ebus
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-12-17 15:11:24 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-12-17 15:11:24 +0000
commit95e3bfe889f9b5d6d6982a8eee60172dd674b492 (patch)
treedfba0d1448284689f0c3e345cfabe550baa77f0f /sys/sparc64/ebus
parentfc54707f7df7dfef2b86c009524827921b945f10 (diff)
downloadsrc-95e3bfe889f9b5d6d6982a8eee60172dd674b492.tar.gz
src-95e3bfe889f9b5d6d6982a8eee60172dd674b492.zip
Simplify the ofw_bus_lookup_imap() API slightly: make it allocate maskbuf
internally instead of requiring the caller to allocate it.
Notes
Notes: svn path=/head/; revision=259516
Diffstat (limited to 'sys/sparc64/ebus')
-rw-r--r--sys/sparc64/ebus/ebus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sparc64/ebus/ebus.c b/sys/sparc64/ebus/ebus.c
index 677e31d75a91..93ad3422a062 100644
--- a/sys/sparc64/ebus/ebus.c
+++ b/sys/sparc64/ebus/ebus.c
@@ -638,7 +638,6 @@ ebus_setup_dinfo(device_t dev, struct ebus_softc *sc, phandle_t node)
uint64_t start;
uint32_t rintr;
int i, nintr, nreg, rv;
- uint8_t maskbuf[sizeof(reg) + sizeof(intr)];
edi = malloc(sizeof(*edi), M_DEVBUF, M_ZERO | M_WAITOK);
if (ofw_bus_gen_setup_devinfo(&edi->edi_obdinfo, node) != 0) {
@@ -673,7 +672,7 @@ ebus_setup_dinfo(device_t dev, struct ebus_softc *sc, phandle_t node)
intr = intrs[i];
rv = ofw_bus_lookup_imap(node, &sc->sc_iinfo, &reg,
sizeof(reg), &intr, sizeof(intr), &rintr,
- sizeof(rintr), NULL, maskbuf);
+ sizeof(rintr), NULL);
#ifndef SUN4V
if (rv != 0)
rintr = INTMAP_VEC(sc->sc_ign, rintr);