Skip to content

Commit f32ffd1

Browse files
committed
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
1 parent e7e958d commit f32ffd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/isa/isa_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ isab_attach(device_t dev)
11141114
{
11151115
device_t child;
11161116

1117-
child = device_add_child(dev, "isa", 0);
1117+
child = device_add_child(dev, "isa", DEVICE_UNIT_ANY);
11181118
if (child == NULL)
11191119
return (ENXIO);
11201120
bus_attach_children(dev);

0 commit comments

Comments
 (0)