diff options
| author | ShengYi Hung <aokblast@FreeBSD.org> | 2025-10-01 08:33:19 +0000 |
|---|---|---|
| committer | ShengYi Hung <aokblast@FreeBSD.org> | 2025-10-03 06:20:04 +0000 |
| commit | f32ffd11b54792d7bdd37b6dfc0f904a561b879c (patch) | |
| tree | 245295ca553f1f6adfd67cd08118a23f8f8cfb6e | |
| parent | e7e958d83d8503c3b8714f68418d4509b8288ed9 (diff) | |
isa_common: allow multiple device instances
In some devices, there may be multiple isa bridges available from different
sources. Therefore, we allow multiple lpc devices to be generated so that
pcie bus won't show "none" anymore.
For example, in my AMD based Framework Laptop, there are two such
bridges. One is acpi hinted, another is from pcie.
Reviewed by: imp
Approved by: lwhsu (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D52815
| -rw-r--r-- | sys/isa/isa_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c index 8e4064af1455..1a6df7bf6046 100644 --- a/sys/isa/isa_common.c +++ b/sys/isa/isa_common.c @@ -1114,7 +1114,7 @@ isab_attach(device_t dev) { device_t child; - child = device_add_child(dev, "isa", 0); + child = device_add_child(dev, "isa", DEVICE_UNIT_ANY); if (child == NULL) return (ENXIO); bus_attach_children(dev); |
