diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 33311c5acc8d..97298786fa12 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -1230,10 +1230,6 @@ daregister(struct cam_periph *periph, void *arg) TASK_INIT(&softc->sysctl_task, 0, dasysctlinit, periph); - /* - * Register this media as a disk - */ - /* * Add async callbacks for bus reset and * bus device reset calls. I don't bother @@ -1291,6 +1287,9 @@ daregister(struct cam_periph *periph, void *arg) else if (softc->minimum_cmd_size > 12) softc->minimum_cmd_size = 16; + /* + * Register this media as a disk. + */ softc->disk = disk_alloc(); softc->disk->d_devstat = devstat_new_entry(periph->periph_name, periph->unit_number, 0,