aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv/input
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hyperv/input')
-rw-r--r--sys/dev/hyperv/input/hv_hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hyperv/input/hv_hid.c b/sys/dev/hyperv/input/hv_hid.c
index a26c46184442..ec68581d63a8 100644
--- a/sys/dev/hyperv/input/hv_hid.c
+++ b/sys/dev/hyperv/input/hv_hid.c
@@ -436,7 +436,7 @@ hv_hid_attach(device_t dev)
ret = ENODEV;
goto out;
}
- child = device_add_child(sc->dev, "hidbus", -1);
+ child = device_add_child(sc->dev, "hidbus", DEVICE_UNIT_ANY);
if (child == NULL) {
device_printf(sc->dev, "failed to add hidbus\n");
ret = ENOMEM;