Diff for /src/sys/dev/raid/amr/amr.c between versions 1.9 and 1.10

version 1.9, 2004/05/13 23:49:18 version 1.10, 2004/05/19 22:52:46
Line 253  amr_attach(struct amr_softc *sc) Line 253  amr_attach(struct amr_softc *sc)
     /*      /*
      * Create the control device.       * Create the control device.
      */       */
    sc->amr_dev_t = make_dev(&amr_cdevsw, device_get_unit(sc->amr_dev), UID_ROOT, GID_OPERATOR,    cdevsw_add(&amr_cdevsw, -1, device_get_unit(sc->amr_dev));
                             S_IRUSR | S_IWUSR, "amr%d", device_get_unit(sc->amr_dev));    sc->amr_dev_t = make_dev(&amr_cdevsw, device_get_unit(sc->amr_dev), 
                             UID_ROOT, GID_OPERATOR, S_IRUSR | S_IWUSR,
                             "amr%d", device_get_unit(sc->amr_dev));
     sc->amr_dev_t->si_drv1 = sc;      sc->amr_dev_t->si_drv1 = sc;
       reference_dev(sc->amr_dev_t);
   
     /*      /*
      * Schedule ourselves to bring the controller up once interrupts are       * Schedule ourselves to bring the controller up once interrupts are
Line 360  amr_free(struct amr_softc *sc) Line 363  amr_free(struct amr_softc *sc)
     /* destroy control device */      /* destroy control device */
     if( sc->amr_dev_t != (dev_t)NULL)      if( sc->amr_dev_t != (dev_t)NULL)
             destroy_dev(sc->amr_dev_t);              destroy_dev(sc->amr_dev_t);
       cdevsw_remove(&amr_cdevsw, -1, device_get_unit(sc->amr_dev));
 }  }
   
 /*******************************************************************************  /*******************************************************************************

Removed from v.1.9  
changed lines
  Added in v.1.10