Author: mav
Date: Mon Apr 15 16:25:00 2019
New Revision: 346241
URL: https://svnweb.freebsd.org/changeset/base/346241

Log:
  MFC r340481 (by imp): Remove do-nothing nvme_modevent.
  
  nvme_modevent no longer does anything interesting, remove it.

Modified:
  stable/11/sys/dev/nvme/nvme.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/nvme/nvme.c
==============================================================================
--- stable/11/sys/dev/nvme/nvme.c       Mon Apr 15 16:24:26 2019        
(r346240)
+++ stable/11/sys/dev/nvme/nvme.c       Mon Apr 15 16:25:00 2019        
(r346241)
@@ -59,7 +59,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;
 
@@ -78,7 +77,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);
 
@@ -179,16 +178,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)
 {
@@ -196,24 +185,6 @@ nvme_shutdown(device_t dev)
 
        ctrlr = DEVICE2SOFTC(dev);
        nvme_ctrlr_shutdown(ctrlr);
-
-       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);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to