diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2013-12-17 15:11:24 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2013-12-17 15:11:24 +0000 |
commit | 95e3bfe889f9b5d6d6982a8eee60172dd674b492 (patch) | |
tree | dfba0d1448284689f0c3e345cfabe550baa77f0f /sys/sparc64/isa | |
parent | fc54707f7df7dfef2b86c009524827921b945f10 (diff) | |
download | src-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/isa')
-rw-r--r-- | sys/sparc64/isa/ofw_isa.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sparc64/isa/ofw_isa.c b/sys/sparc64/isa/ofw_isa.c index 0d0f5b6afc72..dbe5d8a252d1 100644 --- a/sys/sparc64/isa/ofw_isa.c +++ b/sys/sparc64/isa/ofw_isa.c @@ -129,7 +129,6 @@ ofw_isa_route_intr(device_t bridge, phandle_t node, struct ofw_bus_iinfo *ii, ofw_isa_intr_t intr) { struct isa_regs reg; - uint8_t maskbuf[sizeof(reg) + sizeof(intr)]; device_t pbridge; ofw_isa_intr_t mintr; @@ -139,7 +138,7 @@ ofw_isa_route_intr(device_t bridge, phandle_t node, struct ofw_bus_iinfo *ii, * fully specified, so we may not continue to map. */ if (!ofw_bus_lookup_imap(node, ii, ®, sizeof(reg), - &intr, sizeof(intr), &mintr, sizeof(mintr), NULL, maskbuf)) { + &intr, sizeof(intr), &mintr, sizeof(mintr), NULL)) { /* Try routing at the parent bridge. */ mintr = PCIB_ROUTE_INTERRUPT(pbridge, bridge, intr); } |