ichsmb/imcsmb/intpm/ismt: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-05-09 12:22:02 -07:00
parent 4e9e71fd2a
commit dfee3204c9
5 changed files with 5 additions and 18 deletions

View File

@ -250,9 +250,7 @@ static driver_t ichsmb_pci_driver = {
sizeof(struct ichsmb_softc)
};
static devclass_t ichsmb_pci_devclass;
DRIVER_MODULE(ichsmb, pci, ichsmb_pci_driver, ichsmb_pci_devclass, 0, 0);
DRIVER_MODULE(ichsmb, pci, ichsmb_pci_driver, 0, 0);
static int
ichsmb_pci_probe(device_t dev)

View File

@ -521,9 +521,6 @@ imcsmb_transfer(device_t dev, u_char slave, char cmd, void *data, int word_op,
return (rc);
}
/* Our device class */
static devclass_t imcsmb_devclass;
/* Device methods */
static device_method_t imcsmb_methods[] = {
/* Device interface */
@ -547,7 +544,7 @@ static driver_t imcsmb_driver = {
.size = sizeof(struct imcsmb_softc),
};
DRIVER_MODULE(imcsmb, imcsmb_pci, imcsmb_driver, imcsmb_devclass, 0, 0);
DRIVER_MODULE(imcsmb, imcsmb_pci, imcsmb_driver, 0, 0);
MODULE_DEPEND(imcsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
MODULE_VERSION(imcsmb, 1);

View File

@ -318,9 +318,6 @@ imcsmb_pci_request_bus(device_t dev)
return (rc);
}
/* Our device class */
static devclass_t imcsmb_pci_devclass;
/* Device methods */
static device_method_t imcsmb_pci_methods[] = {
/* Device interface */
@ -337,7 +334,7 @@ static driver_t imcsmb_pci_driver = {
.size = sizeof(struct imcsmb_pci_softc),
};
DRIVER_MODULE(imcsmb_pci, pci, imcsmb_pci_driver, imcsmb_pci_devclass, 0, 0);
DRIVER_MODULE(imcsmb_pci, pci, imcsmb_pci_driver, 0, 0);
MODULE_DEPEND(imcsmb_pci, pci, 1, 1, 1);
MODULE_VERSION(imcsmb_pci, 1);

View File

@ -869,8 +869,6 @@ intsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf)
return (error);
}
static devclass_t intsmb_devclass;
static device_method_t intsmb_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, intsmb_probe),
@ -899,8 +897,7 @@ static driver_t intsmb_driver = {
sizeof(struct intsmb_softc),
};
DRIVER_MODULE_ORDERED(intsmb, pci, intsmb_driver, intsmb_devclass, 0, 0,
SI_ORDER_ANY);
DRIVER_MODULE_ORDERED(intsmb, pci, intsmb_driver, 0, 0, SI_ORDER_ANY);
DRIVER_MODULE(smbus, intsmb, smbus_driver, 0, 0);
MODULE_DEPEND(intsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
MODULE_VERSION(intsmb, 1);

View File

@ -772,9 +772,7 @@ static driver_t ismt_pci_driver = {
sizeof(struct ismt_softc)
};
static devclass_t ismt_pci_devclass;
DRIVER_MODULE(ismt, pci, ismt_pci_driver, ismt_pci_devclass, 0, 0);
DRIVER_MODULE(ismt, pci, ismt_pci_driver, 0, 0);
DRIVER_MODULE(smbus, ismt, smbus_driver, 0, 0);
MODULE_DEPEND(ismt, pci, 1, 1, 1);