mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
ng_ubt: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
2d79bae57e
commit
d83185d932
@ -1992,8 +1992,6 @@ ubt_modevent(module_t mod, int event, void *data)
|
||||
return (error);
|
||||
} /* ubt_modevent */
|
||||
|
||||
devclass_t ubt_devclass;
|
||||
|
||||
static device_method_t ubt_methods[] =
|
||||
{
|
||||
DEVMETHOD(device_probe, ubt_probe),
|
||||
@ -2009,7 +2007,7 @@ driver_t ubt_driver =
|
||||
.size = sizeof(struct ubt_softc),
|
||||
};
|
||||
|
||||
DRIVER_MODULE(ng_ubt, uhub, ubt_driver, ubt_devclass, ubt_modevent, 0);
|
||||
DRIVER_MODULE(ng_ubt, uhub, ubt_driver, ubt_modevent, 0);
|
||||
MODULE_VERSION(ng_ubt, NG_BLUETOOTH_VERSION);
|
||||
MODULE_DEPEND(ng_ubt, netgraph, NG_ABI_VERSION, NG_ABI_VERSION, NG_ABI_VERSION);
|
||||
MODULE_DEPEND(ng_ubt, ng_hci, NG_BLUETOOTH_VERSION, NG_BLUETOOTH_VERSION, NG_BLUETOOTH_VERSION);
|
||||
|
@ -215,7 +215,7 @@ static device_method_t ubt_intel_methods[] =
|
||||
|
||||
DEFINE_CLASS_1(ubt, ubt_intel_driver, ubt_intel_methods,
|
||||
sizeof(struct ubt_softc), ubt_driver);
|
||||
DRIVER_MODULE(ng_ubt_intel, uhub, ubt_intel_driver, ubt_devclass, 0, 0);
|
||||
DRIVER_MODULE(ng_ubt_intel, uhub, ubt_intel_driver, 0, 0);
|
||||
MODULE_VERSION(ng_ubt_intel, NG_BLUETOOTH_VERSION);
|
||||
MODULE_DEPEND(ng_ubt_intel, netgraph, NG_ABI_VERSION, NG_ABI_VERSION, NG_ABI_VERSION);
|
||||
MODULE_DEPEND(ng_ubt_intel, ng_hci, NG_BLUETOOTH_VERSION, NG_BLUETOOTH_VERSION, NG_BLUETOOTH_VERSION);
|
||||
|
@ -165,7 +165,6 @@ typedef struct ubt_softc * ubt_softc_p;
|
||||
usb_error_t ubt_do_hci_request(struct usb_device *, struct ubt_hci_cmd *,
|
||||
void *, usb_timeout_t);
|
||||
|
||||
extern devclass_t ubt_devclass;
|
||||
extern driver_t ubt_driver;
|
||||
|
||||
#endif /* ndef _NG_UBT_VAR_H_ */
|
||||
|
@ -155,8 +155,6 @@ static const struct usb_config ubtbcmfw_config[UBTBCMFW_N_TRANSFER] =
|
||||
* Module
|
||||
*/
|
||||
|
||||
static devclass_t ubtbcmfw_devclass;
|
||||
|
||||
static device_method_t ubtbcmfw_methods[] =
|
||||
{
|
||||
DEVMETHOD(device_probe, ubtbcmfw_probe),
|
||||
@ -177,7 +175,7 @@ static const STRUCT_USB_HOST_ID ubtbcmfw_devs[] = {
|
||||
{ USB_VPI(USB_VENDOR_BROADCOM, USB_PRODUCT_BROADCOM_BCM2033, 0) },
|
||||
};
|
||||
|
||||
DRIVER_MODULE(ubtbcmfw, uhub, ubtbcmfw_driver, ubtbcmfw_devclass, NULL, 0);
|
||||
DRIVER_MODULE(ubtbcmfw, uhub, ubtbcmfw_driver, NULL, NULL);
|
||||
MODULE_DEPEND(ubtbcmfw, usb, 1, 1, 1);
|
||||
USB_PNP_HOST_INFO(ubtbcmfw_devs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user