twe/tws: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-05-06 15:46:56 -07:00
parent eae4b615d7
commit 716debed62
2 changed files with 3 additions and 8 deletions

View file

@ -44,8 +44,6 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h>
static devclass_t twe_devclass;
#ifdef TWE_DEBUG
static u_int32_t twed_bio_in;
#define TWED_BIO_IN twed_bio_in++
@ -154,7 +152,7 @@ static driver_t twe_pci_driver = {
sizeof(struct twe_softc)
};
DRIVER_MODULE(twe, pci, twe_pci_driver, twe_devclass, 0, 0);
DRIVER_MODULE(twe, pci, twe_pci_driver, 0, 0);
/********************************************************************************
* Match a 3ware Escalade ATA RAID controller.
@ -690,8 +688,7 @@ static driver_t twed_driver = {
sizeof(struct twed_softc)
};
static devclass_t twed_devclass;
DRIVER_MODULE(twed, twe, twed_driver, twed_devclass, 0, 0);
DRIVER_MODULE(twed, twe, twed_driver, 0, 0);
/*
* Disk device control interface.

View file

@ -881,10 +881,8 @@ static driver_t tws_driver = {
sizeof(struct tws_softc)
};
static devclass_t tws_devclass;
/* DEFINE_CLASS_0(tws, tws_driver, tws_methods, sizeof(struct tws_softc)); */
DRIVER_MODULE(tws, pci, tws_driver, tws_devclass, 0, 0);
DRIVER_MODULE(tws, pci, tws_driver, 0, 0);
MODULE_DEPEND(tws, cam, 1, 1, 1);
MODULE_DEPEND(tws, pci, 1, 1, 1);