mpr/mps/mpt: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-04-20 10:04:01 -07:00
parent b58c5abf07
commit d48ddc5f96
3 changed files with 4 additions and 7 deletions

View File

@ -174,8 +174,7 @@ struct mpr_ident {
{ 0, 0, 0, 0, 0, NULL }
};
static devclass_t mpr_devclass;
DRIVER_MODULE(mpr, pci, mpr_pci_driver, mpr_devclass, 0, 0);
DRIVER_MODULE(mpr, pci, mpr_pci_driver, 0, 0);
MODULE_PNP_INFO("U16:vendor;U16:device;U16:subvendor;U16:subdevice;D:#", pci,
mpr, mpr_identifiers, nitems(mpr_identifiers) - 1);

View File

@ -143,8 +143,7 @@ struct mps_ident {
{ 0, 0, 0, 0, 0, NULL }
};
static devclass_t mps_devclass;
DRIVER_MODULE(mps, pci, mps_pci_driver, mps_devclass, 0, 0);
DRIVER_MODULE(mps, pci, mps_pci_driver, 0, 0);
MODULE_DEPEND(mps, cam, 1, 1, 1);
MODULE_PNP_INFO("U16:vendor;U16:device;U16:subvendor;U16:subdevice", pci, mps,
mps_identifiers, nitems(mps_identifiers) - 1);

View File

@ -169,8 +169,7 @@ static driver_t mpt_driver = {
"mpt", mpt_methods, sizeof(struct mpt_softc)
};
static devclass_t mpt_devclass;
DRIVER_MODULE(mpt, pci, mpt_driver, mpt_devclass, NULL, NULL);
DRIVER_MODULE(mpt, pci, mpt_driver, NULL, NULL);
MODULE_DEPEND(mpt, pci, 1, 1, 1);
MODULE_VERSION(mpt, 1);
@ -291,7 +290,7 @@ mpt_link_peer(struct mpt_softc *mpt)
/*
* XXX: depends on probe order
*/
mpt2 = (struct mpt_softc *)devclass_get_softc(mpt_devclass,mpt->unit-1);
mpt2 = devclass_get_softc(device_get_devclass(mpt->dev), mpt->unit - 1);
if (mpt2 == NULL) {
return;