summaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-07-01 18:58:07 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-07-01 18:58:07 +0000
commitf9d3c13035b262d88a16518e9887c1844d5df314 (patch)
tree96f29f0c23434a563154d475015e853576651b6e /sys/dev/fdt
parentacc217be4c2bd21627b99a8df031f89fa0a4dc54 (diff)
Use generated string for the bus number extent.
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/dwpcie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c
index 37881e5b2ac..6720dc75bea 100644
--- a/sys/dev/fdt/dwpcie.c
+++ b/sys/dev/fdt/dwpcie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwpcie.c,v 1.5 2018/04/09 21:55:25 kettenis Exp $ */
+/* $OpenBSD: dwpcie.c,v 1.6 2018/07/01 18:58:06 kettenis Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
*
@@ -271,7 +271,7 @@ dwpcie_attach(struct device *parent, struct device *self, void *aux)
"%s pciio", sc->sc_dev.dv_xname);
snprintf(sc->sc_memex_name, sizeof(sc->sc_memex_name),
"%s pcimem", sc->sc_dev.dv_xname);
- sc->sc_busex = extent_create("pcibus", 0, 255,
+ sc->sc_busex = extent_create(sc->sc_busex_name, 0, 255,
M_DEVBUF, NULL, 0, EX_WAITOK | EX_FILLED);
sc->sc_ioex = extent_create(sc->sc_ioex_name, 0, 0xffffffff,
M_DEVBUF, NULL, 0, EX_WAITOK | EX_FILLED);