summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-08 07:24:55 +0000
committerpeter <peter@FreeBSD.org>1999-11-08 07:24:55 +0000
commit8f14894e4dc8ffc20488fc0cf8f97a543727bb32 (patch)
tree29f7136db9d13415eb10fb4975a4641295e38e8a /sys/dev/usb/uhid.c
parent630652b41e798533d453007ab71cd791c96e82f0 (diff)
downloadFreeBSD-src-8f14894e4dc8ffc20488fc0cf8f97a543727bb32.zip
FreeBSD-src-8f14894e4dc8ffc20488fc0cf8f97a543727bb32.tar.gz
Use cdevsw_add() explicitly as a workaround for DEV_DRIVER_MODULE().
This should be changed to use make_dev() at some point.
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index 591f699..e2371bb 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -230,6 +230,9 @@ USB_ATTACH(uhid)
sc->sc_repdesc = desc;
sc->sc_repdesc_size = size;
+#ifdef __FreeBSD__
+ cdevsw_add(&uhid_cdevsw);
+#endif
USB_ATTACH_SUCCESS_RETURN;
}
@@ -663,6 +666,5 @@ uhidpoll(dev, events, p)
}
#if defined(__FreeBSD__)
-DEV_DRIVER_MODULE(uhid, uhub, uhid_driver, uhid_devclass,
- uhid_cdevsw, usbd_driver_load, 0);
+DRIVER_MODULE(uhid, uhub, uhid_driver, uhid_devclass, usbd_driver_load, 0);
#endif
OpenPOWER on IntegriCloud