diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2024-12-06 22:26:16 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2024-12-06 22:26:16 +0000 |
| commit | 18250ec6c089c0c50cbd9fd87d78e03ff89916df (patch) | |
| tree | f5dd88ced310b6c82afec1a89f7f23bc10b72913 /sys/dev/usb/input | |
| parent | 723da5d92f40a413585107f8455280ea575fe410 (diff) | |
Diffstat (limited to 'sys/dev/usb/input')
| -rw-r--r-- | sys/dev/usb/input/usbhid.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/input/usbhid.c b/sys/dev/usb/input/usbhid.c index 4d7bf12c7387..d357a699b527 100644 --- a/sys/dev/usb/input/usbhid.c +++ b/sys/dev/usb/input/usbhid.c @@ -842,12 +842,7 @@ usbhid_attach(device_t dev) } device_set_ivars(child, &sc->sc_hw); - error = bus_generic_attach(dev); - if (error) { - device_printf(dev, "failed to attach child: %d\n", error); - usbhid_detach(dev); - return (error); - } + bus_attach_children(dev); return (0); /* success */ } |
