Remove unused hidraw_devclass.
This commit is contained in:
parent
c90ea83112
commit
a4777bb437
@ -58,10 +58,6 @@ SYSCTL_NODE(_hw, OID_AUTO, hid, CTLFLAG_RW, 0, "HID debugging");
|
||||
SYSCTL_INT(_hw_hid, OID_AUTO, debug, CTLFLAG_RWTUN,
|
||||
&hid_debug, 0, "Debug level");
|
||||
|
||||
#ifdef HIDRAW_MAKE_UHID_ALIAS
|
||||
devclass_t hidraw_devclass;
|
||||
#endif
|
||||
|
||||
static void hid_clear_local(struct hid_item *);
|
||||
static uint8_t hid_get_byte(struct hid_data *s, const uint16_t wSize);
|
||||
|
||||
|
@ -194,9 +194,6 @@
|
||||
#define HID_MAX_AUTO_QUIRK 8 /* maximum number of dynamic quirks */
|
||||
#define HID_PNP_ID_SIZE 20 /* includes null terminator */
|
||||
|
||||
/* Share unit number pool between uhid and hidraw */
|
||||
extern devclass_t hidraw_devclass;
|
||||
|
||||
/* Declare global HID debug variable. */
|
||||
extern int hid_debug;
|
||||
|
||||
|
@ -984,11 +984,7 @@ static driver_t hidraw_driver = {
|
||||
sizeof(struct hidraw_softc)
|
||||
};
|
||||
|
||||
#ifndef HIDRAW_MAKE_UHID_ALIAS
|
||||
devclass_t hidraw_devclass;
|
||||
#endif
|
||||
|
||||
DRIVER_MODULE(hidraw, hidbus, hidraw_driver, hidraw_devclass, NULL, 0);
|
||||
DRIVER_MODULE(hidraw, hidbus, hidraw_driver, NULL, NULL);
|
||||
MODULE_DEPEND(hidraw, hidbus, 1, 1, 1);
|
||||
MODULE_DEPEND(hidraw, hid, 1, 1, 1);
|
||||
MODULE_DEPEND(hidraw, usb, 1, 1, 1);
|
||||
|
@ -935,7 +935,7 @@ static driver_t uhid_driver = {
|
||||
};
|
||||
|
||||
#ifdef HIDRAW_MAKE_UHID_ALIAS
|
||||
DRIVER_MODULE(uhid, uhub, uhid_driver, hidraw_devclass, NULL, 0);
|
||||
DRIVER_MODULE(uhid, uhub, uhid_driver, NULL, NULL);
|
||||
#else
|
||||
DRIVER_MODULE(uhid, uhub, uhid_driver, uhid_devclass, NULL, 0);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user