aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firmware
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-12-06 22:26:16 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-12-06 22:26:16 +0000
commit18250ec6c089c0c50cbd9fd87d78e03ff89916df (patch)
treef5dd88ced310b6c82afec1a89f7f23bc10b72913 /sys/dev/firmware
parent723da5d92f40a413585107f8455280ea575fe410 (diff)
Diffstat (limited to 'sys/dev/firmware')
-rw-r--r--sys/dev/firmware/arm/scmi.c4
-rw-r--r--sys/dev/firmware/xilinx/zynqmp_firmware.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/firmware/arm/scmi.c b/sys/dev/firmware/arm/scmi.c
index afabdcf9917b..82c06e969926 100644
--- a/sys/dev/firmware/arm/scmi.c
+++ b/sys/dev/firmware/arm/scmi.c
@@ -182,9 +182,9 @@ scmi_attach(device_t dev)
for (node = OF_child(node); node > 0; node = OF_peer(node))
simplebus_add_device(dev, node, 0, NULL, -1, NULL);
- error = bus_generic_attach(dev);
+ bus_attach_children(dev);
- return (error);
+ return (0);
}
static int
diff --git a/sys/dev/firmware/xilinx/zynqmp_firmware.c b/sys/dev/firmware/xilinx/zynqmp_firmware.c
index a6b55a3528a1..dfe41842c40c 100644
--- a/sys/dev/firmware/xilinx/zynqmp_firmware.c
+++ b/sys/dev/firmware/xilinx/zynqmp_firmware.c
@@ -477,7 +477,8 @@ zynqmp_firmware_attach(device_t dev)
device_probe_and_attach(cdev);
}
- return (bus_generic_attach(dev));
+ bus_attach_children(dev);
+ return (0);
}
static device_method_t zynqmp_firmware_methods[] = {