Diff for /src/sys/dev/raid/aac/aac.c between versions 1.11 and 1.12

version 1.11, 2004/05/13 23:49:18 version 1.12, 2004/05/19 22:52:46
Line 296  aac_attach(struct aac_softc *sc) Line 296  aac_attach(struct aac_softc *sc)
          * Make the control device.           * Make the control device.
          */           */
         unit = device_get_unit(sc->aac_dev);          unit = device_get_unit(sc->aac_dev);
           cdevsw_add(&aac_cdevsw, -1, unit);
         sc->aac_dev_t = make_dev(&aac_cdevsw, unit, UID_ROOT, GID_WHEEL, 0644,          sc->aac_dev_t = make_dev(&aac_cdevsw, unit, UID_ROOT, GID_WHEEL, 0644,
                                  "aac%d", unit);                                   "aac%d", unit);
 #if defined(__FreeBSD__) && __FreeBSD_version > 500005  #if defined(__FreeBSD__) && __FreeBSD_version > 500005
Line 303  aac_attach(struct aac_softc *sc) Line 304  aac_attach(struct aac_softc *sc)
         (void)make_dev_alias(sc->aac_dev_t, "hpn%d", unit);          (void)make_dev_alias(sc->aac_dev_t, "hpn%d", unit);
 #endif  #endif
         sc->aac_dev_t->si_drv1 = sc;          sc->aac_dev_t->si_drv1 = sc;
           reference_dev(sc->aac_dev_t);
   
         /* Create the AIF thread */          /* Create the AIF thread */
 #if defined(__FreeBSD__) && __FreeBSD_version > 500005  #if defined(__FreeBSD__) && __FreeBSD_version > 500005
Line 466  aac_free(struct aac_softc *sc) Line 468  aac_free(struct aac_softc *sc)
                 bus_dma_tag_destroy(sc->aac_parent_dmat);                  bus_dma_tag_destroy(sc->aac_parent_dmat);
   
         /* release the register window mapping */          /* release the register window mapping */
        if (sc->aac_regs_resource != NULL)        if (sc->aac_regs_resource != NULL) {
                 bus_release_resource(sc->aac_dev, SYS_RES_MEMORY,                  bus_release_resource(sc->aac_dev, SYS_RES_MEMORY,
                                      sc->aac_regs_rid, sc->aac_regs_resource);                                       sc->aac_regs_rid, sc->aac_regs_resource);
           }
           cdevsw_remove(&aac_cdevsw, -1, device_get_unit(sc->aac_dev));
 }  }
   
 /*  /*

Removed from v.1.11  
changed lines
  Added in v.1.12