|
@@ -176,7 +176,6 @@ void scsi_remove_host(struct Scsi_Host *shost)
|
|
transport_unregister_device(&shost->shost_gendev);
|
|
transport_unregister_device(&shost->shost_gendev);
|
|
device_unregister(&shost->shost_dev);
|
|
device_unregister(&shost->shost_dev);
|
|
device_del(&shost->shost_gendev);
|
|
device_del(&shost->shost_gendev);
|
|
- scsi_proc_hostdir_rm(shost->hostt);
|
|
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(scsi_remove_host);
|
|
EXPORT_SYMBOL(scsi_remove_host);
|
|
|
|
|
|
@@ -270,6 +269,8 @@ static void scsi_host_dev_release(struct device *dev)
|
|
struct Scsi_Host *shost = dev_to_shost(dev);
|
|
struct Scsi_Host *shost = dev_to_shost(dev);
|
|
struct device *parent = dev->parent;
|
|
struct device *parent = dev->parent;
|
|
|
|
|
|
|
|
+ scsi_proc_hostdir_rm(shost->hostt);
|
|
|
|
+
|
|
if (shost->ehandler)
|
|
if (shost->ehandler)
|
|
kthread_stop(shost->ehandler);
|
|
kthread_stop(shost->ehandler);
|
|
if (shost->work_q)
|
|
if (shost->work_q)
|