Diff for /src/sys/bus/cam/scsi/scsi_pass.c between versions 1.11 and 1.12

version 1.11, 2004/05/13 23:49:11 version 1.12, 2004/05/19 22:52:38
Line 81  struct pass_softc { Line 81  struct pass_softc {
         struct          buf_queue_head buf_queue;          struct          buf_queue_head buf_queue;
         union ccb       saved_ccb;          union ccb       saved_ccb;
         struct devstat  device_stats;          struct devstat  device_stats;
         dev_t           dev;  
 };  };
   
 #define PASS_CDEV_MAJOR 31  #define PASS_CDEV_MAJOR 31
Line 236  passcleanup(struct cam_periph *periph) Line 235  passcleanup(struct cam_periph *periph)
   
         devstat_remove_entry(&softc->device_stats);          devstat_remove_entry(&softc->device_stats);
   
         destroy_dev(softc->dev);  
   
         cam_extend_release(passperiphs, periph->unit_number);          cam_extend_release(passperiphs, periph->unit_number);
   
         if (bootverbose) {          if (bootverbose) {
                 xpt_print_path(periph->path);                  xpt_print_path(periph->path);
                 printf("removing device entry\n");                  printf("removing device entry\n");
         }          }
           cdevsw_remove(&pass_cdevsw, -1, periph->unit_number);
         free(softc, M_DEVBUF);          free(softc, M_DEVBUF);
 }  }
   
Line 325  passregister(struct cam_periph *periph, Line 323  passregister(struct cam_periph *periph,
                           DEVSTAT_PRIORITY_PASS);                            DEVSTAT_PRIORITY_PASS);
   
         /* Register the device */          /* Register the device */
        softc->dev = make_dev(&pass_cdevsw, periph->unit_number, UID_ROOT,        cdevsw_add(&pass_cdevsw, -1, periph->unit_number);
                              GID_OPERATOR, 0600, "%s%d", periph->periph_name,        make_dev(&pass_cdevsw, periph->unit_number, UID_ROOT,
                              periph->unit_number);                  GID_OPERATOR, 0600, "%s%d", periph->periph_name,
                   periph->unit_number);
   
         /*          /*
          * Add an async callback so that we get           * Add an async callback so that we get

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