Diff for /src/sys/dev/raid/mlx/mlx.c between versions 1.7 and 1.8

version 1.7, 2004/05/13 23:49:19 version 1.8, 2004/05/19 22:52:47
Line 208  mlx_free(struct mlx_softc *sc) Line 208  mlx_free(struct mlx_softc *sc)
     if (sc->mlx_enq2 != NULL)      if (sc->mlx_enq2 != NULL)
         free(sc->mlx_enq2, M_DEVBUF);          free(sc->mlx_enq2, M_DEVBUF);
   
     /* destroy control device */      cdevsw_remove(&mlx_cdevsw, -1, device_get_unit(sc->mlx_dev));
     if (sc->mlx_dev_t != (dev_t)NULL)  
         destroy_dev(sc->mlx_dev_t);  
 }  }
   
 /********************************************************************************  /********************************************************************************
Line 483  mlx_attach(struct mlx_softc *sc) Line 481  mlx_attach(struct mlx_softc *sc)
     /*      /*
      * Create the control device.       * Create the control device.
      */       */
     sc->mlx_dev_t = make_dev(&mlx_cdevsw, device_get_unit(sc->mlx_dev), UID_ROOT, GID_OPERATOR,       cdevsw_add(&mlx_cdevsw, -1, device_get_unit(sc->mlx_dev));
                              S_IRUSR | S_IWUSR, "mlx%d", device_get_unit(sc->mlx_dev));      make_dev(&mlx_cdevsw, device_get_unit(sc->mlx_dev), 
               UID_ROOT, GID_OPERATOR, S_IRUSR | S_IWUSR,
               "mlx%d", device_get_unit(sc->mlx_dev));
   
     /*      /*
      * Start the timeout routine.       * Start the timeout routine.

Removed from v.1.7  
changed lines
  Added in v.1.8