From f9d3c13035b262d88a16518e9887c1844d5df314 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 1 Jul 2018 18:58:07 +0000 Subject: Use generated string for the bus number extent. --- sys/dev/fdt/dwpcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 * @@ -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); -- cgit v1.2.3