mfi: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
b45db76260
commit
354f6c1cc1
@ -94,7 +94,6 @@ static int mfi_allow_disks = 0;
|
|||||||
SYSCTL_INT(_hw_mfi, OID_AUTO, allow_cam_disk_passthrough, CTLFLAG_RDTUN,
|
SYSCTL_INT(_hw_mfi, OID_AUTO, allow_cam_disk_passthrough, CTLFLAG_RDTUN,
|
||||||
&mfi_allow_disks, 0, "event message locale");
|
&mfi_allow_disks, 0, "event message locale");
|
||||||
|
|
||||||
static devclass_t mfip_devclass;
|
|
||||||
static device_method_t mfip_methods[] = {
|
static device_method_t mfip_methods[] = {
|
||||||
DEVMETHOD(device_probe, mfip_probe),
|
DEVMETHOD(device_probe, mfip_probe),
|
||||||
DEVMETHOD(device_attach, mfip_attach),
|
DEVMETHOD(device_attach, mfip_attach),
|
||||||
@ -102,12 +101,14 @@ static device_method_t mfip_methods[] = {
|
|||||||
|
|
||||||
DEVMETHOD_END
|
DEVMETHOD_END
|
||||||
};
|
};
|
||||||
|
|
||||||
static driver_t mfip_driver = {
|
static driver_t mfip_driver = {
|
||||||
"mfip",
|
"mfip",
|
||||||
mfip_methods,
|
mfip_methods,
|
||||||
sizeof(struct mfip_softc)
|
sizeof(struct mfip_softc)
|
||||||
};
|
};
|
||||||
DRIVER_MODULE(mfip, mfi, mfip_driver, mfip_devclass, 0, 0);
|
|
||||||
|
DRIVER_MODULE(mfip, mfi, mfip_driver, 0, 0);
|
||||||
MODULE_DEPEND(mfip, cam, 1, 1, 1);
|
MODULE_DEPEND(mfip, cam, 1, 1, 1);
|
||||||
MODULE_DEPEND(mfip, mfi, 1, 1, 1);
|
MODULE_DEPEND(mfip, mfi, 1, 1, 1);
|
||||||
|
|
||||||
|
@ -68,8 +68,6 @@ static disk_close_t mfi_disk_close;
|
|||||||
static disk_strategy_t mfi_disk_strategy;
|
static disk_strategy_t mfi_disk_strategy;
|
||||||
static dumper_t mfi_disk_dump;
|
static dumper_t mfi_disk_dump;
|
||||||
|
|
||||||
static devclass_t mfi_disk_devclass;
|
|
||||||
|
|
||||||
static device_method_t mfi_disk_methods[] = {
|
static device_method_t mfi_disk_methods[] = {
|
||||||
DEVMETHOD(device_probe, mfi_disk_probe),
|
DEVMETHOD(device_probe, mfi_disk_probe),
|
||||||
DEVMETHOD(device_attach, mfi_disk_attach),
|
DEVMETHOD(device_attach, mfi_disk_attach),
|
||||||
@ -83,7 +81,7 @@ static driver_t mfi_disk_driver = {
|
|||||||
sizeof(struct mfi_disk)
|
sizeof(struct mfi_disk)
|
||||||
};
|
};
|
||||||
|
|
||||||
DRIVER_MODULE(mfid, mfi, mfi_disk_driver, mfi_disk_devclass, 0, 0);
|
DRIVER_MODULE(mfid, mfi, mfi_disk_driver, 0, 0);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
mfi_disk_probe(device_t dev)
|
mfi_disk_probe(device_t dev)
|
||||||
|
@ -108,8 +108,6 @@ static driver_t mfi_pci_driver = {
|
|||||||
sizeof(struct mfi_softc)
|
sizeof(struct mfi_softc)
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t mfi_devclass;
|
|
||||||
|
|
||||||
static int mfi_msi = 1;
|
static int mfi_msi = 1;
|
||||||
SYSCTL_INT(_hw_mfi, OID_AUTO, msi, CTLFLAG_RDTUN, &mfi_msi, 0,
|
SYSCTL_INT(_hw_mfi, OID_AUTO, msi, CTLFLAG_RDTUN, &mfi_msi, 0,
|
||||||
"Enable use of MSI interrupts");
|
"Enable use of MSI interrupts");
|
||||||
@ -161,7 +159,7 @@ struct mfi_ident {
|
|||||||
{0, 0, 0, 0, 0, NULL}
|
{0, 0, 0, 0, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
DRIVER_MODULE(mfi, pci, mfi_pci_driver, mfi_devclass, 0, 0);
|
DRIVER_MODULE(mfi, pci, mfi_pci_driver, 0, 0);
|
||||||
MODULE_PNP_INFO("U16:vendor;U16:device;U16:subvendor;U16:subdevice", pci, mfi,
|
MODULE_PNP_INFO("U16:vendor;U16:device;U16:subvendor;U16:subdevice", pci, mfi,
|
||||||
mfi_identifiers, nitems(mfi_identifiers) - 1);
|
mfi_identifiers, nitems(mfi_identifiers) - 1);
|
||||||
MODULE_VERSION(mfi, 1);
|
MODULE_VERSION(mfi, 1);
|
||||||
|
@ -73,8 +73,6 @@ static disk_close_t mfi_syspd_close;
|
|||||||
static disk_strategy_t mfi_syspd_strategy;
|
static disk_strategy_t mfi_syspd_strategy;
|
||||||
static dumper_t mfi_syspd_dump;
|
static dumper_t mfi_syspd_dump;
|
||||||
|
|
||||||
static devclass_t mfi_syspd_devclass;
|
|
||||||
|
|
||||||
static device_method_t mfi_syspd_methods[] = {
|
static device_method_t mfi_syspd_methods[] = {
|
||||||
DEVMETHOD(device_probe, mfi_syspd_probe),
|
DEVMETHOD(device_probe, mfi_syspd_probe),
|
||||||
DEVMETHOD(device_attach, mfi_syspd_attach),
|
DEVMETHOD(device_attach, mfi_syspd_attach),
|
||||||
@ -88,7 +86,7 @@ static driver_t mfi_syspd_driver = {
|
|||||||
sizeof(struct mfi_system_pd)
|
sizeof(struct mfi_system_pd)
|
||||||
};
|
};
|
||||||
|
|
||||||
DRIVER_MODULE(mfisyspd, mfi, mfi_syspd_driver, mfi_syspd_devclass, 0, 0);
|
DRIVER_MODULE(mfisyspd, mfi, mfi_syspd_driver, 0, 0);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
mfi_syspd_probe(device_t dev)
|
mfi_syspd_probe(device_t dev)
|
||||||
|
Loading…
Reference in New Issue
Block a user