nvme: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-05-06 15:46:55 -07:00
parent e7451a6b82
commit 1093caa1bb
4 changed files with 2 additions and 6 deletions

View File

@ -53,8 +53,6 @@ int32_t nvme_retry_count;
MALLOC_DEFINE(M_NVME, "nvme", "nvme(4) memory allocations");
devclass_t nvme_devclass;
static void
nvme_init(void)
{

View File

@ -54,7 +54,7 @@ static driver_t nvme_ahci_driver = {
sizeof(struct nvme_controller),
};
DRIVER_MODULE(nvme, ahci, nvme_ahci_driver, nvme_devclass, NULL, 0);
DRIVER_MODULE(nvme, ahci, nvme_ahci_driver, NULL, NULL);
static int
nvme_ahci_probe (device_t device)

View File

@ -66,7 +66,7 @@ static driver_t nvme_pci_driver = {
sizeof(struct nvme_controller),
};
DRIVER_MODULE(nvme, pci, nvme_pci_driver, nvme_devclass, NULL, 0);
DRIVER_MODULE(nvme, pci, nvme_pci_driver, NULL, NULL);
static struct _pcsid
{

View File

@ -114,8 +114,6 @@ struct nvme_completion_poll_status {
int done;
};
extern devclass_t nvme_devclass;
#define NVME_REQUEST_VADDR 1
#define NVME_REQUEST_NULL 2 /* For requests with no payload. */
#define NVME_REQUEST_UIO 3