DEVFS - remove dev_ops_add(), dev_ops_get(), and get_dev()
[dragonfly.git] / sys / dev / raid / mly / mly.c
index 41e1a02..5883830 100644 (file)
@@ -36,7 +36,6 @@
 #include <sys/conf.h>
 #include <sys/device.h>
 #include <sys/ctype.h>
-#include <sys/ioccom.h>
 #include <sys/stat.h>
 #include <sys/rman.h>
 #include <sys/thread2.h>
@@ -311,10 +310,9 @@ mly_attach(device_t dev)
     /*
      * Create the control device.
      */
-    dev_ops_add(&mly_ops, -1, device_get_unit(sc->mly_dev));
     sc->mly_dev_t = make_dev(&mly_ops, device_get_unit(sc->mly_dev),
-                               UID_ROOT, GID_OPERATOR, S_IRUSR | S_IWUSR, 
-                               "mly%d", device_get_unit(sc->mly_dev));
+                            UID_ROOT, GID_OPERATOR, S_IRUSR | S_IWUSR,
+                            "mly%d", device_get_unit(sc->mly_dev));
     sc->mly_dev_t->si_drv1 = sc;
 
     /* enable interrupts now */