diff options
| author | Warner Losh <imp@FreeBSD.org> | 2018-11-16 16:51:44 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2018-11-16 16:51:44 +0000 |
| commit | 14343799dc7d99cbadd5aab5481fbd05268c7841 (patch) | |
| tree | 51fd09034a1cb4f6bd9981b8dfc2798631492a89 /sys/dev/nvme | |
| parent | 0df8bab66664aec5cbe6928037b6bfd9bd18b5fd (diff) | |
Notes
Diffstat (limited to 'sys/dev/nvme')
| -rw-r--r-- | sys/dev/nvme/nvme.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/sys/dev/nvme/nvme.c b/sys/dev/nvme/nvme.c index 85820a2307827..75d7a11dab8ba 100644 --- a/sys/dev/nvme/nvme.c +++ b/sys/dev/nvme/nvme.c @@ -61,7 +61,6 @@ static int nvme_probe(device_t); static int nvme_attach(device_t); static int nvme_detach(device_t); static int nvme_shutdown(device_t); -static int nvme_modevent(module_t mod, int type, void *arg); static devclass_t nvme_devclass; @@ -80,7 +79,7 @@ static driver_t nvme_pci_driver = { sizeof(struct nvme_controller), }; -DRIVER_MODULE(nvme, pci, nvme_pci_driver, nvme_devclass, nvme_modevent, 0); +DRIVER_MODULE(nvme, pci, nvme_pci_driver, nvme_devclass, NULL, NULL); MODULE_VERSION(nvme, 1); MODULE_DEPEND(nvme, cam, 1, 1, 1); @@ -181,16 +180,6 @@ nvme_uninit(void) SYSUNINIT(nvme_unregister, SI_SUB_DRIVERS, SI_ORDER_SECOND, nvme_uninit, NULL); -static void -nvme_load(void) -{ -} - -static void -nvme_unload(void) -{ -} - static int nvme_shutdown(device_t dev) { @@ -202,24 +191,6 @@ nvme_shutdown(device_t dev) return (0); } -static int -nvme_modevent(module_t mod, int type, void *arg) -{ - - switch (type) { - case MOD_LOAD: - nvme_load(); - break; - case MOD_UNLOAD: - nvme_unload(); - break; - default: - break; - } - - return (0); -} - void nvme_dump_command(struct nvme_command *cmd) { |
