We need to define version 1 of nvme, not nvme_foo. Otherwise nvd won't

load and people who pull in nvme/nvd from modules can't load nvd.ko
since it depends on nvme, not nvme_foo. The duplicate doesn't matter
since kldxref properly handles that case.
This commit is contained in:
Warner Losh 2019-08-22 21:12:51 +00:00
parent ec743e0c33
commit 2d43fab9c2
2 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,8 @@ static driver_t nvme_ahci_driver = {
};
DRIVER_MODULE(nvme, ahci, nvme_ahci_driver, nvme_devclass, NULL, 0);
MODULE_VERSION(nvme_ahci, 1);
MODULE_VERSION(nvme, 1);
MODULE_DEPEND(nvme, cam, 1, 1, 1);
static int
nvme_ahci_probe (device_t device)

View File

@ -62,7 +62,8 @@ static driver_t nvme_pci_driver = {
};
DRIVER_MODULE(nvme, pci, nvme_pci_driver, nvme_devclass, NULL, 0);
MODULE_VERSION(nvme_pci, 1);
MODULE_VERSION(nvme, 1);
MODULE_DEPEND(nvme, cam, 1, 1, 1);
static struct _pcsid
{