aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv
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/hyperv
parent723da5d92f40a413585107f8455280ea575fe410 (diff)
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r--sys/dev/hyperv/input/hv_hid.c4
-rw-r--r--sys/dev/hyperv/pcib/vmbus_pcib.c2
-rw-r--r--sys/dev/hyperv/vmbus/vmbus.c2
3 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/hyperv/input/hv_hid.c b/sys/dev/hyperv/input/hv_hid.c
index b8fc9605bf67..c54bc43c0f24 100644
--- a/sys/dev/hyperv/input/hv_hid.c
+++ b/sys/dev/hyperv/input/hv_hid.c
@@ -443,9 +443,7 @@ hv_hid_attach(device_t dev)
goto out;
}
device_set_ivars(child, &sc->hdi);
- ret = bus_generic_attach(dev);
- if (ret != 0)
- device_printf(sc->dev, "failed to attach hidbus\n");
+ bus_attach_children(dev);
out:
if (ret != 0)
hv_hid_detach(dev);
diff --git a/sys/dev/hyperv/pcib/vmbus_pcib.c b/sys/dev/hyperv/pcib/vmbus_pcib.c
index 7c596c724e52..7b755e5f9c63 100644
--- a/sys/dev/hyperv/pcib/vmbus_pcib.c
+++ b/sys/dev/hyperv/pcib/vmbus_pcib.c
@@ -1571,7 +1571,7 @@ vmbus_pcib_attach(device_t dev)
goto vmbus_close;
}
- bus_generic_attach(dev);
+ bus_attach_children(dev);
hbus->state = hv_pcibus_installed;
diff --git a/sys/dev/hyperv/vmbus/vmbus.c b/sys/dev/hyperv/vmbus/vmbus.c
index 672f94f5fd85..1c620a1f5d84 100644
--- a/sys/dev/hyperv/vmbus/vmbus.c
+++ b/sys/dev/hyperv/vmbus/vmbus.c
@@ -560,7 +560,7 @@ vmbus_scan(struct vmbus_softc *sc)
* Identify, probe and attach for non-channel devices.
*/
bus_identify_children(sc->vmbus_dev);
- bus_generic_attach(sc->vmbus_dev);
+ bus_attach_children(sc->vmbus_dev);
/*
* This taskqueue serializes vmbus devices' attach and detach