James Bottomley wrote: > Actually, the patch is wrong. It will wreak havoc with SCSI's use of sysfs. > The device_register has to be done in scsi_add_host, which is called after all > the driver specific sysfs setup has been done. The correct fix is to move the > corresponding device_unregister into scsi_remove_host so that they match. > > I've attached it below. I'll also commit it to the scsi-misc-2.5 BK tree. > > James > > > > ------------------------------------------------------------------------ > > ===== hosts.c 1.31 vs edited ===== > --- 1.31/drivers/scsi/hosts.c Sun Nov 17 15:47:02 2002 > +++ edited/hosts.c Sat Nov 23 17:25:57 2002 > @@ -295,6 +295,8 @@ > kfree(sdev); > } > > + device_unregister(&shost->host_driverfs_dev); > + > return 0; > } > > @@ -348,7 +350,6 @@ > > /* Cleanup proc and driverfs */ > scsi_proc_host_rm(shost); > - device_unregister(&shost->host_driverfs_dev); > > kfree(shost); > } James, The above patch is a bit noisy when applied to lk 2.5.50 . Attached is the same patch (I hope) which applies cleanly. Doug Gilbert