diff options
author | peter <peter@FreeBSD.org> | 1999-11-08 07:24:55 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-11-08 07:24:55 +0000 |
commit | 8f14894e4dc8ffc20488fc0cf8f97a543727bb32 (patch) | |
tree | 29f7136db9d13415eb10fb4975a4641295e38e8a /sys/dev/usb/uhid.c | |
parent | 630652b41e798533d453007ab71cd791c96e82f0 (diff) | |
download | FreeBSD-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.c | 6 |
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 |